SpotifyRequest: Remove unused variable

This commit is contained in:
Jonas Kvinge 2024-07-28 14:55:42 +02:00
parent 160356072f
commit 5ef4976c53
1 changed files with 0 additions and 2 deletions

View File

@ -768,7 +768,6 @@ void SpotifyRequest::AlbumsReceived(QNetworkReply *reply, const Artist &artist_a
bool compilation = false; bool compilation = false;
bool multidisc = false; bool multidisc = false;
SongList songs; SongList songs;
int songs_received = 0;
for (const QJsonValueRef value : array_tracks) { for (const QJsonValueRef value : array_tracks) {
if (!value.isObject()) { if (!value.isObject()) {
continue; continue;
@ -777,7 +776,6 @@ void SpotifyRequest::AlbumsReceived(QNetworkReply *reply, const Artist &artist_a
if (obj_track.contains(QLatin1String("track")) && obj_track[QLatin1String("track")].isObject()) { if (obj_track.contains(QLatin1String("track")) && obj_track[QLatin1String("track")].isObject()) {
obj_track = obj_track[QLatin1String("track")].toObject(); obj_track = obj_track[QLatin1String("track")].toObject();
} }
++songs_received;
Song song(Song::Source::Spotify); Song song(Song::Source::Spotify);
ParseSong(song, obj_track, artist, album); ParseSong(song, obj_track, artist, album);
if (!song.is_valid()) continue; if (!song.is_valid()) continue;