Skip to content

Commit

Permalink
remove always true conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Apr 13, 2024
1 parent 89e31dd commit f580443
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/calcstemfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ data_STEMDIRECTION CalcStemFunctor::CalcStemDirection(const Chord *chord, int ve
else if (middlePoint > verticalCenter) {
return STEMDIRECTION_down;
}
else if (middlePoint < verticalCenter) {
else {
return STEMDIRECTION_up;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ioabc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ void ABCInput::parseKey(std::string &keyString)
posStart = pitch.size() - posEnd;
keyPitchAlterAmount = -1;
}
else if (accidNum > 0) {
else {
keySig = StringFormat("%ds", accidNum);
keyPitchAlterAmount = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/metersiggrp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ MeterSig *MeterSigGrp::GetSimplifiedMeterSig() const
const int ratio = maxUnit / currentUnit;
currentCount += meterSig->GetTotalCount() * ratio;
}
else if (maxUnit < currentUnit) {
else {
const int ratio = currentUnit / maxUnit;
currentCount *= ratio;
currentCount += meterSig->GetTotalCount();
Expand Down

0 comments on commit f580443

Please sign in to comment.