src: remove unused variable

Signed-off-by: Marcus Müller <marcus_clementine@baseband.digital>
This commit is contained in:
Marcus Müller 2023-09-17 09:26:09 +02:00 committed by John Maguire
parent 98e24f626b
commit cfcddf7c0f
3 changed files with 0 additions and 10 deletions

View File

@ -92,12 +92,10 @@ void MoodbarBuilder::Normalize(QList<Rgb>* vals, double Rgb::*member) {
} }
double avg = 0; double avg = 0;
int t = 0;
for (const Rgb& rgb : *vals) { for (const Rgb& rgb : *vals) {
const double value = rgb.*member; const double value = rgb.*member;
if (value != mini && value != maxi) { if (value != mini && value != maxi) {
avg += value / vals->count(); avg += value / vals->count();
t++;
} }
} }

View File

@ -1729,13 +1729,11 @@ PlaylistItemList Playlist::RemoveItemsWithoutUndo(int row, int count) {
endRemoveRows(); endRemoveRows();
QList<int>::iterator it = virtual_items_.begin(); QList<int>::iterator it = virtual_items_.begin();
int i = 0;
while (it != virtual_items_.end()) { while (it != virtual_items_.end()) {
if (*it >= items_.count()) if (*it >= items_.count())
it = virtual_items_.erase(it); it = virtual_items_.erase(it);
else else
++it; ++it;
++i;
} }
// Reset current_virtual_index_ // Reset current_virtual_index_

View File

@ -34,12 +34,6 @@
#undef AddJob #undef AddJob
#endif #endif
namespace {
const char kWavHeaderRiffMarker[] = "RIFF";
const char kWavFileTypeFormatChunk[] = "WAVEfmt ";
const char kWavDataString[] = "data";
} // namespace
Ripper::Ripper(int track_count, QObject* parent) Ripper::Ripper(int track_count, QObject* parent)
: QObject(parent), : QObject(parent),
track_count_(track_count), track_count_(track_count),