aboutsummaryrefslogtreecommitdiff
path: root/tty-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-25 06:15:04 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-25 06:15:04 +0000
commit1675ddb4d1880b834a2bd0bbae5a9ffa17eb596d (patch)
treee0947101a25be132a7c964959cf884705f2f1076 /tty-write.c
parented8350422e9472b657034367f39ab133f7913862 (diff)
downloadrtmux-1675ddb4d1880b834a2bd0bbae5a9ffa17eb596d.tar.gz
rtmux-1675ddb4d1880b834a2bd0bbae5a9ffa17eb596d.tar.bz2
rtmux-1675ddb4d1880b834a2bd0bbae5a9ffa17eb596d.zip
Miscellaneous unused functions, including one which was basically a
duplicate. Found by lint.
Diffstat (limited to 'tty-write.c')
-rw-r--r--tty-write.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/tty-write.c b/tty-write.c
index 83aeea75..889075b2 100644
--- a/tty-write.c
+++ b/tty-write.c
@@ -63,28 +63,3 @@ tty_vwrite_cmd(struct window_pane *wp, enum tty_cmd cmd, va_list ap)
}
}
}
-
-void
-tty_write_mode(struct window_pane *wp, int mode)
-{
- struct client *c;
- u_int i;
-
- if (wp == NULL)
- return;
-
- if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
- return;
- if (wp->window->flags & WINDOW_HIDDEN || wp->flags & PANE_HIDDEN)
- return;
-
- for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
- c = ARRAY_ITEM(&clients, i);
- if (c == NULL || c->session == NULL)
- continue;
- if (c->flags & CLIENT_SUSPENDED)
- continue;
-
- tty_update_mode(&c->tty, mode);
- }
-}