Skip to content

Commit

Permalink
Remove runtime checks already covered by an assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBE committed May 2, 2024
1 parent 4481d0d commit 407e247
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,6 @@ void Meter_setMode(Meter* this, MeterModeId modeIndex) {
}

uint32_t supportedModes = Meter_supportedModes(this);
if (!supportedModes) {
supportedModes = METERMODE_DEFAULT_SUPPORTED;
}
assert(supportedModes);
assert(!(supportedModes & (1 << 0)));

Expand All @@ -480,9 +477,6 @@ void Meter_setMode(Meter* this, MeterModeId modeIndex) {

MeterModeId Meter_nextSupportedMode(const Meter* this) {
uint32_t supportedModes = Meter_supportedModes(this);
if (!supportedModes) {
supportedModes = METERMODE_DEFAULT_SUPPORTED;
}
assert(supportedModes);

assert(this->mode < UINT32_WIDTH);
Expand Down

0 comments on commit 407e247

Please sign in to comment.