diff options
author | 2009-06-25 06:15:04 +0000 | |
---|---|---|
committer | 2009-06-25 06:15:04 +0000 | |
commit | 32aed42ee35f70a1bc3170077e37c4c924dedeb3 (patch) | |
tree | 16b91d042cfcb633783af6bfe72ed1c8e542d67d /usr.bin/tmux/window.c | |
parent | Nuke unused buffer functions. Found by lint. (diff) | |
download | wireguard-openbsd-32aed42ee35f70a1bc3170077e37c4c924dedeb3.tar.xz wireguard-openbsd-32aed42ee35f70a1bc3170077e37c4c924dedeb3.zip |
Miscellaneous unused functions, including one which was basically a
duplicate. Found by lint.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r-- | usr.bin/tmux/window.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 33d44da61be..98926724b83 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.5 2009/06/24 22:49:56 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.6 2009/06/25 06:15:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -327,21 +327,6 @@ window_remove_pane(struct window *w, struct window_pane *wp) window_pane_destroy(wp); } -u_int -window_index_of_pane(struct window *w, struct window_pane *find) -{ - struct window_pane *wp; - u_int n; - - n = 0; - TAILQ_FOREACH(wp, &w->panes, entry) { - if (wp == find) - return (n); - n++; - } - fatalx("unknown pane"); -} - struct window_pane * window_pane_at_index(struct window *w, u_int idx) { |