From f489ffa086fea47f466d2a3fe7fddbd326d742c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 17 Mar 2017 23:21:36 +0100 Subject: [PATCH] mpdclient: remove unused attribute "update_id" --- src/mpdclient.c | 2 -- src/mpdclient.h | 1 - src/screen_client.c | 4 ---- 3 files changed, 7 deletions(-) diff --git a/src/mpdclient.c b/src/mpdclient.c index 7707893..2ae91b4 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -202,8 +202,6 @@ mpdclient_update(struct mpdclient *c) if (c->status == NULL) return mpdclient_handle_error(c); - c->update_id = mpd_status_get_update_id(c->status); - c->volume = mpd_status_get_volume(c->status); /* check if the playlist needs an update */ diff --git a/src/mpdclient.h b/src/mpdclient.h index fb083b9..1d4dbc9 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -36,7 +36,6 @@ struct mpdclient { const struct mpd_song *song; int volume; - unsigned update_id; /** * A bit mask of idle events occurred since the last update. diff --git a/src/screen_client.c b/src/screen_client.c index f291c7c..c70257f 100644 --- a/src/screen_client.c +++ b/src/screen_client.c @@ -44,10 +44,6 @@ screen_database_update(struct mpdclient *c, const char *path) return; } - /* set update_id to make sure the browse callback gets called - even if the update has finished before status is updated */ - c->update_id = id; - if (path != NULL && *path != 0) { char *path_locale = utf8_to_locale(path); screen_status_printf(_("Database update of %s started"), path); -- 2.30.2