=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/tty-write.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/tmux/Attic/tty-write.c 2009/06/05 03:13:16 1.2 +++ src/usr.bin/tmux/Attic/tty-write.c 2009/06/25 06:15:04 1.3 @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-write.c,v 1.2 2009/06/05 03:13:16 ray Exp $ */ +/* $OpenBSD: tty-write.c,v 1.3 2009/06/25 06:15:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -61,30 +61,5 @@ tty_vwrite(&c->tty, wp, cmd, aq); va_end(aq); } - } -} - -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); } }