diff options
author | Max Kellermann <max@duempel.org> | 2008-09-25 19:19:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-25 19:19:37 +0200 |
commit | 84f5a0e883f96adf58c8fd182650a1372e367563 (patch) | |
tree | ed84df0fdc88364f01e4fc865b11dfc1c652086c | |
parent | 434615a48f315a0655891149efa42dc6b919e722 (diff) | |
download | mpd-84f5a0e883f96adf58c8fd182650a1372e367563.tar.gz mpd-84f5a0e883f96adf58c8fd182650a1372e367563.tar.xz mpd-84f5a0e883f96adf58c8fd182650a1372e367563.zip |
filelist: removed attribute "updated"
Since all screen updating is now on demand, we don't need this flag
anymore.
Diffstat (limited to '')
-rw-r--r-- | src/filelist.c | 1 | ||||
-rw-r--r-- | src/filelist.h | 3 | ||||
-rw-r--r-- | src/mpdclient.c | 2 | ||||
-rw-r--r-- | src/screen_artist.c | 2 | ||||
-rw-r--r-- | src/screen_search.c | 4 |
5 files changed, 0 insertions, 12 deletions
diff --git a/src/filelist.c b/src/filelist.c index 59fed4702..46137cd3b 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 d96a67c9d..85e551fc3 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 caa9fe3a9..5098226d4 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 7a28a7887..be7049b4d 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 b2640ebd4..5135b6cf0 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); |