summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-03-22 19:18:46 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-03-22 19:18:46 +0000
commitc550e66e8542919ab4f02d1cdd87b6d59c7896fb (patch)
treeded4e4ad0645621398021c6dc34ee6e2a320a76d
parente16b7b8399c7478db34788e29020f4b973fb5fe0 (diff)
Dead functions, lint.
-rw-r--r--server-fn.c9
-rw-r--r--status.c25
-rw-r--r--tmux.h1
3 files changed, 0 insertions, 35 deletions
diff --git a/server-fn.c b/server-fn.c
index 3c7277bd..86d7ffdd 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -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/status.c b/status.c
index 5576cff9..eff8b615 100644
--- a/status.c
+++ b/status.c
@@ -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/tmux.h b/tmux.h
index 05a4dd94..3145b742 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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(