Miscellaneous unused functions, including one which was basically a

duplicate. Found by lint.
This commit is contained in:
Nicholas Marriott
2009-06-25 16:09:11 +00:00
parent 62822b1848
commit 582660bdf3
8 changed files with 8 additions and 140 deletions

View File

@ -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>
@ -341,21 +341,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)
{