diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-27 18:51:46 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-27 18:51:46 +0000 |
commit | 13e29dd7b5dfcefdfda6a1dd3c3f78c9cd7f1cc9 (patch) | |
tree | 01f8255f678a81bd25f2064e5209256e76436be8 | |
parent | ad0aad21d5dcc7d8c09a6c76e85ae1e46cf6b0da (diff) |
Get rid of empty mode_key_free function.
-rw-r--r-- | mode-key.c | 5 | ||||
-rw-r--r-- | status.c | 2 | ||||
-rw-r--r-- | tmux.h | 1 | ||||
-rw-r--r-- | window-choose.c | 2 | ||||
-rw-r--r-- | window-copy.c | 2 | ||||
-rw-r--r-- | window-more.c | 2 | ||||
-rw-r--r-- | window-scroll.c | 2 |
7 files changed, 0 insertions, 16 deletions
@@ -33,11 +33,6 @@ mode_key_init(struct mode_key_data *mdata, int type, int flags) mdata->flags = flags; } -void -mode_key_free(unused struct mode_key_data *mdata) -{ -} - enum mode_key_cmd mode_key_lookup(struct mode_key_data *mdata, int key) { @@ -622,8 +622,6 @@ status_prompt_clear(struct client *c) if (c->prompt_freefn != NULL && c->prompt_data != NULL) c->prompt_freefn(c->prompt_data); - mode_key_free(&c->prompt_mdata); - xfree(c->prompt_string); c->prompt_string = NULL; @@ -1033,7 +1033,6 @@ int load_cfg(const char *, char **x); /* mode-key.c */ void mode_key_init(struct mode_key_data *, int, int); -void mode_key_free(struct mode_key_data *); enum mode_key_cmd mode_key_lookup(struct mode_key_data *, int); /* options.c */ diff --git a/window-choose.c b/window-choose.c index a1f1a069..8439c9a0 100644 --- a/window-choose.c +++ b/window-choose.c @@ -140,8 +140,6 @@ window_choose_free(struct window_pane *wp) if (data->freefn != NULL && data->data != NULL) data->freefn(data->data); - mode_key_free(&data->mdata); - for (i = 0; i < ARRAY_LENGTH(&data->list); i++) xfree(ARRAY_ITEM(&data->list, i).name); ARRAY_FREE(&data->list); diff --git a/window-copy.c b/window-copy.c index da398d8a..d87a645e 100644 --- a/window-copy.c +++ b/window-copy.c @@ -125,8 +125,6 @@ window_copy_free(struct window_pane *wp) { struct window_copy_mode_data *data = wp->modedata; - mode_key_free(&data->mdata); - screen_free(&data->screen); xfree(data); } diff --git a/window-more.c b/window-more.c index 6f75f120..d92a06a2 100644 --- a/window-more.c +++ b/window-more.c @@ -101,8 +101,6 @@ window_more_free(struct window_pane *wp) struct window_more_mode_data *data = wp->modedata; u_int i; - mode_key_free(&data->mdata); - for (i = 0; i < ARRAY_LENGTH(&data->list); i++) xfree(ARRAY_ITEM(&data->list, i)); ARRAY_FREE(&data->list); diff --git a/window-scroll.c b/window-scroll.c index 9db91ebd..ecc76306 100644 --- a/window-scroll.c +++ b/window-scroll.c @@ -88,8 +88,6 @@ window_scroll_free(struct window_pane *wp) { struct window_scroll_mode_data *data = wp->modedata; - mode_key_free(&data->mdata); - screen_free(&data->screen); xfree(data); } |