Code

filelist: removed attribute "updated"
authorMax Kellermann <max@duempel.org>
Thu, 25 Sep 2008 17:19:37 +0000 (19:19 +0200)
committerMax Kellermann <max@duempel.org>
Thu, 25 Sep 2008 17:19:37 +0000 (19:19 +0200)
Since all screen updating is now on demand, we don't need this flag
anymore.

src/filelist.c
src/filelist.h
src/mpdclient.c
src/screen_artist.c
src/screen_search.c

index 59fed47020d4524f1fbfc03b7423d8d5304b6d92..46137cd3b00ca6f15df939b6e4003eea0b2d18f5 100644 (file)
@@ -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;
index d96a67c9d578e95798c26e6c4c407a1c9c64e811..85e551fc3619943461b2e59659ae2ffcf7ddd8d5 100644 (file)
@@ -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;
index caa9fe3a951eafe0a3467d2a65798cec3557b297..5098226d4727ac51c20f6e6d278783002cf0571a 100644 (file)
@@ -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;
 }
 
index 7a28a78879c0f9367cfd459beda9e642f61f40c2..be7049b4d00db013d0498d614d6376517c5de92b 100644 (file)
@@ -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;
        }
 
index b2640ebd4b2bdb9420335b89b08d03deeb0159d2..5135b6cf027309fbea390791426d524655d01ad4 100644 (file)
@@ -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);