summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-03-22 19:18:47 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-03-22 19:18:47 +0000
commitdcd3d8817d73944d51e4fd40a72c950817598ecf (patch)
tree9387575a7ce0b7cb463f62a7ed87def93cdcb9a6 /usr.bin/tmux/status.c
parent22a1d2366979dcbc2ac0c42647bfeb96351c8613 (diff)
Dead functions, lint.
Diffstat (limited to 'usr.bin/tmux/status.c')
-rw-r--r--usr.bin/tmux/status.c27
1 files changed, 1 insertions, 26 deletions
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(