Skip to content

Commit

Permalink
ReplayGain: Use debug asserts for situations that shouldn't occur
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg committed Jul 19, 2021
1 parent c84a068 commit 3f74538
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/widget/wtrackmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,14 +916,8 @@ class ImportMetadataFromFileTagsTrackPointerOperation : public mixxx::TrackPoint
} // anonymous namespace

void WTrackMenu::slotUpdateReplaygainFromDeckGain() {
if (!m_pTrack) {
qDebug() << "track pointer nullptr, returning";
return;
}
if (m_deckGroup.isEmpty()) {
qDebug() << "Deck group not set";
return;
}
DEBUG_ASSERT(m_pTrack);
DEBUG_ASSERT(!m_deckGroup.isEmpty());

const double gain = ControlObject::get(ConfigKey(m_deckGroup, "pregain"));
// Gain is at unity already, ignore and return.
Expand Down

0 comments on commit 3f74538

Please sign in to comment.