summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-06-25 06:15:04 +0000
committernicm <nicm@openbsd.org>2009-06-25 06:15:04 +0000
commit32aed42ee35f70a1bc3170077e37c4c924dedeb3 (patch)
tree16b91d042cfcb633783af6bfe72ed1c8e542d67d /usr.bin/tmux/window.c
parentNuke unused buffer functions. Found by lint. (diff)
downloadwireguard-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.c17
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)
{