From: Max Kellermann Date: Thu, 25 Sep 2008 17:19:37 +0000 (+0200) Subject: filelist: removed attribute "updated" X-Git-Tag: v0.12_alpha1~150 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=84f5a0e883f96adf58c8fd182650a1372e367563;p=ncmpc.git filelist: removed attribute "updated" Since all screen updating is now on demand, we don't need this flag anymore. --- diff --git a/src/filelist.c b/src/filelist.c index 59fed47..46137cd 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -29,7 +29,6 @@ filelist_new(const char *path) struct filelist *filelist = g_malloc(sizeof(*filelist)); filelist->path = g_strdup(path); - filelist->updated = FALSE; filelist->entries = g_ptr_array_new(); return filelist; diff --git a/src/filelist.h b/src/filelist.h index d96a67c..85e551f 100644 --- a/src/filelist.h +++ b/src/filelist.h @@ -33,9 +33,6 @@ typedef struct filelist { /* path */ gchar *path; - /* true if the list is updated */ - gboolean updated; - /* the list */ GPtrArray *entries; } mpdclient_filelist_t; diff --git a/src/mpdclient.c b/src/mpdclient.c index caa9fe3..5098226 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -782,7 +782,6 @@ mpdclient_filelist_get(mpdclient_t *c, const gchar *path) mpdclient_finish_command(c); g_free(path_utf8); - filelist->updated = TRUE; // If there are only directory entities in the filelist, we sort it if (has_dirs_only) { @@ -817,7 +816,6 @@ mpdclient_filelist_search_utf8(mpdclient_t *c, return NULL; } - filelist->updated = TRUE; return filelist; } diff --git a/src/screen_artist.c b/src/screen_artist.c index 7a28a78..be7049b 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -237,7 +237,6 @@ paint(mpd_unused mpdclient_t *c) if (browser.filelist) { list_window_paint(browser.lw, browser_lw_callback, browser.filelist); - browser.filelist->updated = FALSE; } else if (metalist) { list_window_paint(browser.lw, artist_lw_callback, metalist); } else { @@ -472,7 +471,6 @@ artist_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) list_window_paint(browser.lw, browser_lw_callback, browser.filelist); wrefresh(browser.lw->w); - browser.filelist->updated = FALSE; return 1; } diff --git a/src/screen_search.c b/src/screen_search.c index b2640eb..5135b6c 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -213,7 +213,6 @@ filelist_search(mpdclient_t *c, mpd_unused int exact_match, int table, } filelist_sort(list, compare_filelistentry_format); - list->updated = TRUE; } else { list = mpdclient_filelist_search(c, FALSE, table, local_pattern); if (list == NULL) @@ -312,8 +311,6 @@ search_advanced_query(char *query, mpdclient_t *c) if (mpdclient_finish_command(c) && fl) filelist_free(fl); - - fl->updated = TRUE; } i=0; @@ -410,7 +407,6 @@ paint(mpd_unused mpdclient_t *c) if (browser.filelist) { browser.lw->flags = 0; list_window_paint(browser.lw, browser_lw_callback, browser.filelist); - browser.filelist->updated = FALSE; } else { browser.lw->flags = LW_HIDE_CURSOR; list_window_paint(browser.lw, lw_search_help_callback, NULL);