mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-15 08:12:46 +02:00
Miscellaneous unused functions, including one which was basically a
duplicate. Found by lint.
This commit is contained in:
15
window.c
15
window.c
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user