diff options
author | Max Kellermann <max@duempel.org> | 2008-09-18 00:58:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-18 00:58:40 +0200 |
commit | 76c97b279206dbfb75da9047a62e6fcbe20ad64c (patch) | |
tree | 494596c6cf86f3e4c9089baa3aad65fedf77fe43 /src/screen_clock.c | |
parent | 8ef5bed9479924849c6bbbd3f0e49870b1db481f (diff) | |
download | mpd-76c97b279206dbfb75da9047a62e6fcbe20ad64c.tar.gz mpd-76c97b279206dbfb75da9047a62e6fcbe20ad64c.tar.xz mpd-76c97b279206dbfb75da9047a62e6fcbe20ad64c.zip |
screen: removed empty methods
Declaring empty methods is of no use. If a method is empty, we should
set it to NULL in the screen_functions struct.
Diffstat (limited to '')
-rw-r--r-- | src/screen_clock.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/screen_clock.c b/src/screen_clock.c index 11d2da1b2..cba8acdb5 100644 --- a/src/screen_clock.c +++ b/src/screen_clock.c @@ -128,26 +128,6 @@ clock_init(WINDOW *w, int cols, int rows) clock_resize(cols, rows); } -static void -clock_exit(void) -{ -} - -static void -clock_open(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c) -{ - int j; - - for (j = 0; j < 5; j++) - older[j] = newer[j] = next[j] = 0; - -} - -static void -clock_close(void) -{ -} - static const char * clock_title(mpd_unused char *str, mpd_unused size_t size) { @@ -234,22 +214,11 @@ clock_paint(screen_t *screen, mpdclient_t *c) clock_update(screen, c); } -static int -clock_cmd(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c, - mpd_unused command_t cmd) -{ - return 0; -} - const struct screen_functions screen_clock = { .init = clock_init, - .exit = clock_exit, - .open = clock_open, - .close = clock_close, .resize = clock_resize, .paint = clock_paint, .update = clock_update, - .cmd = clock_cmd, .get_title = clock_title, }; |