From: Ingo Bürk Date: Wed, 18 Feb 2015 19:01:32 +0000 (+0100) Subject: remove unused statusline_buffer X-Git-Tag: 4.10.1~82^2~1^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ff230c3751957ce57a2ffbcf7a5d7667fa3d56c;p=i3%2Fi3 remove unused statusline_buffer --- diff --git a/i3bar/include/common.h b/i3bar/include/common.h index e8b6be0a..90b11f78 100644 --- a/i3bar/include/common.h +++ b/i3bar/include/common.h @@ -17,7 +17,6 @@ typedef struct rect_t rect; struct ev_loop *main_loop; char *statusline; -char *statusline_buffer; struct rect_t { int x; diff --git a/i3bar/src/child.c b/i3bar/src/child.c index d0f0c5fb..c0ea3613 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -56,7 +56,6 @@ parser_ctx parser_context; /* The buffer statusline points to */ struct statusline_head statusline_head = TAILQ_HEAD_INITIALIZER(statusline_head); -char *statusline_buffer = NULL; int child_stdin; @@ -115,9 +114,6 @@ void cleanup(void) { if (stdin_io != NULL) { ev_io_stop(main_loop, stdin_io); FREE(stdin_io); - FREE(statusline_buffer); - /* statusline pointed to memory within statusline_buffer */ - statusline = NULL; } if (child_sig != NULL) { diff --git a/i3bar/src/main.c b/i3bar/src/main.c index 371aeec9..ee3d81b9 100644 --- a/i3bar/src/main.c +++ b/i3bar/src/main.c @@ -171,8 +171,6 @@ int main(int argc, char **argv) { kill_child(); - FREE(statusline_buffer); - clean_xcb(); ev_default_destroy();