remove unused statusline_buffer
This commit is contained in:
parent
bb6823f5c7
commit
9ff230c375
@ -17,7 +17,6 @@ typedef struct rect_t rect;
|
||||
|
||||
struct ev_loop *main_loop;
|
||||
char *statusline;
|
||||
char *statusline_buffer;
|
||||
|
||||
struct rect_t {
|
||||
int x;
|
||||
|
@ -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) {
|
||||
|
@ -171,8 +171,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
kill_child();
|
||||
|
||||
FREE(statusline_buffer);
|
||||
|
||||
clean_xcb();
|
||||
ev_default_destroy();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user