diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-03-22 19:18:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-03-22 19:18:47 +0000 |
commit | dcd3d8817d73944d51e4fd40a72c950817598ecf (patch) | |
tree | 9387575a7ce0b7cb463f62a7ed87def93cdcb9a6 /usr.bin/tmux | |
parent | 22a1d2366979dcbc2ac0c42647bfeb96351c8613 (diff) |
Dead functions, lint.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/server-fn.c | 11 | ||||
-rw-r--r-- | usr.bin/tmux/status.c | 27 | ||||
-rw-r--r-- | usr.bin/tmux/tmux.h | 3 |
3 files changed, 3 insertions, 38 deletions
diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c index a7018a13822..74f82af9b56 100644 --- a/usr.bin/tmux/server-fn.c +++ b/usr.bin/tmux/server-fn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.34 2010/01/23 21:07:31 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.35 2010/03/22 19:18:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -43,15 +43,6 @@ server_fill_environ(struct session *s, struct environ *env) } void -server_write_error(struct client *c, const char *msg) -{ - struct msg_print_data printdata; - - strlcpy(printdata.msg, msg, sizeof printdata.msg); - server_write_client(c, MSG_ERROR, &printdata, sizeof printdata); -} - -void server_write_client( struct client *c, enum msgtype type, const void *buf, size_t len) { diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c index d4a28fa9568..ab883e52933 100644 --- a/usr.bin/tmux/status.c +++ b/usr.bin/tmux/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.58 2010/01/27 20:26:42 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.59 2010/03/22 19:18:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -35,7 +35,6 @@ char *status_redraw_get_right( struct client *, time_t, int, struct grid_cell *, size_t *); char *status_job(struct client *, char **); void status_job_callback(struct job *); -size_t status_width(struct client *, struct winlink *, time_t); char *status_print( struct client *, struct winlink *, time_t, struct grid_cell *); void status_replace1(struct client *, @@ -559,30 +558,6 @@ status_job_callback(struct job *job) job->data = xstrdup(line); } -/* Calculate winlink status line entry width. */ -size_t -status_width(struct client *c, struct winlink *wl, time_t t) -{ - struct options *oo = &wl->window->options; - struct session *s = c->session; - const char *fmt; - char *text; - size_t size; - int utf8flag; - - utf8flag = options_get_number(&s->options, "status-utf8"); - - fmt = options_get_string(&wl->window->options, "window-status-format"); - if (wl == s->curw) - fmt = options_get_string(oo, "window-status-current-format"); - - text = status_replace(c, wl, fmt, t, 1); - size = screen_write_cstrlen(utf8flag, "%s", text); - xfree(text); - - return (size); -} - /* Return winlink status line entry and adjust gc as necessary. */ char * status_print( diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 0280868e068..49b763b107a 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.212 2010/03/22 19:10:42 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.213 2010/03/22 19:18:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1597,7 +1597,6 @@ void server_window_loop(void); /* server-fn.c */ void server_fill_environ(struct session *, struct environ *); -void server_write_error(struct client *, const char *); void server_write_client( struct client *, enum msgtype, const void *, size_t); void server_write_session( |