Skip to content

Commit

Permalink
src: remove unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Müller <[email protected]>
  • Loading branch information
Marcus Müller authored and hatstand committed Sep 17, 2023
1 parent 98e24f6 commit cfcddf7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/moodbar/moodbarbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,10 @@ void MoodbarBuilder::Normalize(QList<Rgb>* vals, double Rgb::*member) {
}

double avg = 0;
int t = 0;
for (const Rgb& rgb : *vals) {
const double value = rgb.*member;
if (value != mini && value != maxi) {
avg += value / vals->count();
t++;
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/playlist/playlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1729,13 +1729,11 @@ PlaylistItemList Playlist::RemoveItemsWithoutUndo(int row, int count) {
endRemoveRows();

QList<int>::iterator it = virtual_items_.begin();
int i = 0;
while (it != virtual_items_.end()) {
if (*it >= items_.count())
it = virtual_items_.erase(it);
else
++it;
++i;
}

// Reset current_virtual_index_
Expand Down
6 changes: 0 additions & 6 deletions src/ripper/ripper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
#undef AddJob
#endif

namespace {
const char kWavHeaderRiffMarker[] = "RIFF";
const char kWavFileTypeFormatChunk[] = "WAVEfmt ";
const char kWavDataString[] = "data";
} // namespace

Ripper::Ripper(int track_count, QObject* parent)
: QObject(parent),
track_count_(track_count),
Expand Down

0 comments on commit cfcddf7

Please sign in to comment.