summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-07-27 18:51:47 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-07-27 18:51:47 +0000
commitfd4fed4f5cee936f943df05ae404b037d788262a (patch)
tree31275b6d75eacf97c291cffa971a341b9055444d /usr.bin
parent0196dc2665606f35a7cbd1ca368d9649507245aa (diff)
Get rid of empty mode_key_free function.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/mode-key.c7
-rw-r--r--usr.bin/tmux/status.c4
-rw-r--r--usr.bin/tmux/tmux.h3
-rw-r--r--usr.bin/tmux/window-choose.c4
-rw-r--r--usr.bin/tmux/window-copy.c4
-rw-r--r--usr.bin/tmux/window-more.c4
-rw-r--r--usr.bin/tmux/window-scroll.c4
7 files changed, 7 insertions, 23 deletions
diff --git a/usr.bin/tmux/mode-key.c b/usr.bin/tmux/mode-key.c
index 6329393edae..114b6cc1ec0 100644
--- a/usr.bin/tmux/mode-key.c
+++ b/usr.bin/tmux/mode-key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mode-key.c,v 1.6 2009/07/27 12:11:11 nicm Exp $ */
+/* $OpenBSD: mode-key.c,v 1.7 2009/07/27 18:51:46 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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)
{
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 35e902fbc5b..f3751f9fbd1 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.18 2009/07/27 12:11:11 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.19 2009/07/27 18:51:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index d5934ac8afe..dc8871ae716 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.57 2009/07/27 12:11:11 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.58 2009/07/27 18:51:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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/usr.bin/tmux/window-choose.c b/usr.bin/tmux/window-choose.c
index 7b6b5af4fea..586fe157636 100644
--- a/usr.bin/tmux/window-choose.c
+++ b/usr.bin/tmux/window-choose.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-choose.c,v 1.3 2009/07/17 07:05:58 nicm Exp $ */
+/* $OpenBSD: window-choose.c,v 1.4 2009/07/27 18:51:46 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index dc9cb7311d7..ce3ee84c51c 100644
--- a/usr.bin/tmux/window-copy.c
+++ b/usr.bin/tmux/window-copy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-copy.c,v 1.8 2009/07/27 07:42:45 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.9 2009/07/27 18:51:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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/usr.bin/tmux/window-more.c b/usr.bin/tmux/window-more.c
index fc371a8a298..990d000abd4 100644
--- a/usr.bin/tmux/window-more.c
+++ b/usr.bin/tmux/window-more.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-more.c,v 1.3 2009/06/25 06:15:04 nicm Exp $ */
+/* $OpenBSD: window-more.c,v 1.4 2009/07/27 18:51:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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/usr.bin/tmux/window-scroll.c b/usr.bin/tmux/window-scroll.c
index 14d01e3637b..8d3c1298616 100644
--- a/usr.bin/tmux/window-scroll.c
+++ b/usr.bin/tmux/window-scroll.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-scroll.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */
+/* $OpenBSD: window-scroll.c,v 1.2 2009/07/27 18:51:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);
}