Remove unused variables
This commit is contained in:
parent
01ddded603
commit
0ef50e1b6d
@ -1862,7 +1862,6 @@ void MainWindow::PlaylistRightClick(const QPoint global_pos, const QModelIndex &
|
|||||||
int in_skipped = 0;
|
int in_skipped = 0;
|
||||||
int not_in_skipped = 0;
|
int not_in_skipped = 0;
|
||||||
int local_songs = 0;
|
int local_songs = 0;
|
||||||
int collection_songs = 0;
|
|
||||||
|
|
||||||
for (const QModelIndex &idx : selection) {
|
for (const QModelIndex &idx : selection) {
|
||||||
|
|
||||||
@ -1873,7 +1872,6 @@ void MainWindow::PlaylistRightClick(const QPoint global_pos, const QModelIndex &
|
|||||||
if (!item) continue;
|
if (!item) continue;
|
||||||
|
|
||||||
if (item->Metadata().url().isLocalFile()) ++local_songs;
|
if (item->Metadata().url().isLocalFile()) ++local_songs;
|
||||||
if (item->Metadata().source() == Song::Source::Collection) ++collection_songs;
|
|
||||||
|
|
||||||
if (item->Metadata().has_cue()) {
|
if (item->Metadata().has_cue()) {
|
||||||
cue_selected = true;
|
cue_selected = true;
|
||||||
|
@ -433,7 +433,6 @@ void SubsonicRequest::AlbumSongsReplyReceived(QNetworkReply *reply, const QStrin
|
|||||||
bool compilation = false;
|
bool compilation = false;
|
||||||
bool multidisc = false;
|
bool multidisc = false;
|
||||||
SongList songs;
|
SongList songs;
|
||||||
int songs_received = 0;
|
|
||||||
for (const QJsonValueRef value_song : array_songs) {
|
for (const QJsonValueRef value_song : array_songs) {
|
||||||
|
|
||||||
if (!value_song.isObject()) {
|
if (!value_song.isObject()) {
|
||||||
@ -442,7 +441,6 @@ void SubsonicRequest::AlbumSongsReplyReceived(QNetworkReply *reply, const QStrin
|
|||||||
}
|
}
|
||||||
QJsonObject obj_song = value_song.toObject();
|
QJsonObject obj_song = value_song.toObject();
|
||||||
|
|
||||||
++songs_received;
|
|
||||||
Song song(Song::Source::Subsonic);
|
Song song(Song::Source::Subsonic);
|
||||||
ParseSong(song, obj_song, artist_id, album_id, album_artist, created);
|
ParseSong(song, obj_song, artist_id, album_id, album_artist, created);
|
||||||
if (!song.is_valid()) continue;
|
if (!song.is_valid()) continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user