Skip to content

Commit

Permalink
Get rid of empty mode_key_free function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Jul 27, 2009
1 parent ad0aad2 commit 13e29dd
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions mode-key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 0 additions & 2 deletions status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion tmux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 0 additions & 2 deletions window-choose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions window-copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions window-more.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions window-scroll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 13e29dd

Please sign in to comment.