From 9ff230c3751957ce57a2ffbcf7a5d7667fa3d56c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Wed, 18 Feb 2015 20:01:32 +0100 Subject: [PATCH] remove unused statusline_buffer --- i3bar/include/common.h | 1 - i3bar/src/child.c | 4 ---- i3bar/src/main.c | 2 -- 3 files changed, 7 deletions(-) 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(); -- 2.39.5