From: Max Kellermann Date: Fri, 17 Mar 2017 22:21:36 +0000 (+0100) Subject: mpdclient: remove unused attribute "update_id" X-Git-Tag: v0.26~53 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f489ffa086fea47f466d2a3fe7fddbd326d742c1;p=ncmpc.git mpdclient: remove unused attribute "update_id" --- 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);