summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-08-29 23:55:56 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-08-29 23:55:56 +0000
commit5385f25cc8f6eea8480156c88ffe5f4d8faab28e (patch)
tree26c2127a8a31bef3586850ab56a1ada420d62ccb /usr.bin/tmux
parent9ac58df6bfbd908aa80137bb6bb51df7f9d5308e (diff)
Remove some old prototypes and unused functions.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/layout-set.c8
-rw-r--r--usr.bin/tmux/tmux.h8
-rw-r--r--usr.bin/tmux/window.c12
3 files changed, 3 insertions, 25 deletions
diff --git a/usr.bin/tmux/layout-set.c b/usr.bin/tmux/layout-set.c
index e7c1514d73d..5e396b31c1c 100644
--- a/usr.bin/tmux/layout-set.c
+++ b/usr.bin/tmux/layout-set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: layout-set.c,v 1.11 2014/04/17 14:45:49 nicm Exp $ */
+/* $OpenBSD: layout-set.c,v 1.12 2015/08/29 23:55:55 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -44,12 +44,6 @@ const struct {
{ "tiled", layout_set_tiled },
};
-const char *
-layout_set_name(u_int layout)
-{
- return (layout_sets[layout].name);
-}
-
int
layout_set_lookup(const char *name)
{
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index c9b27912fdb..78c88bee88d 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.544 2015/08/29 23:19:52 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.545 2015/08/29 23:55:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1841,7 +1841,6 @@ int server_client_open(struct client *, char **);
void server_client_unref(struct client *);
void server_client_lost(struct client *);
void server_client_callback(int, short, void *);
-void server_client_status_timer(void);
void server_client_loop(void);
/* server-fn.c */
@@ -1863,7 +1862,6 @@ void server_status_window(struct window *);
void server_lock(void);
void server_lock_session(struct session *);
void server_lock_client(struct client *);
-int server_unlock(const char *);
void server_kill_window(struct window *);
int server_link_window(struct session *,
struct winlink *, struct session *, int, int, int, char **);
@@ -2013,7 +2011,6 @@ void screen_write_cursormove(struct screen_write_ctx *, u_int, u_int);
void screen_write_reverseindex(struct screen_write_ctx *);
void screen_write_scrollregion(struct screen_write_ctx *, u_int, u_int);
void screen_write_linefeed(struct screen_write_ctx *, int);
-void screen_write_linefeedscreen(struct screen_write_ctx *, int);
void screen_write_carriagereturn(struct screen_write_ctx *);
void screen_write_clearendofscreen(struct screen_write_ctx *);
void screen_write_clearstartofscreen(struct screen_write_ctx *);
@@ -2076,7 +2073,6 @@ struct window *window_create(const char *, int, char **, const char *,
u_int, u_int, u_int, char **);
void window_destroy(struct window *);
struct window_pane *window_get_active_at(struct window *, u_int, u_int);
-void window_set_active_at(struct window *, u_int, u_int);
struct window_pane *window_find_string(struct window *, const char *);
int window_has_pane(struct window *, struct window_pane *);
int window_set_active_pane(struct window *, struct window_pane *);
@@ -2157,12 +2153,10 @@ char *layout_dump(struct layout_cell *);
int layout_parse(struct window *, const char *);
/* layout-set.c */
-const char *layout_set_name(u_int);
int layout_set_lookup(const char *);
u_int layout_set_select(struct window *, u_int);
u_int layout_set_next(struct window *);
u_int layout_set_previous(struct window *);
-void layout_set_active_changed(struct window *);
/* window-clock.c */
extern const struct window_mode window_clock_mode;
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 758bfb3dcdc..fa791d93276 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.143 2015/08/29 08:30:54 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.144 2015/08/29 23:55:55 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -440,16 +440,6 @@ window_get_active_at(struct window *w, u_int x, u_int y)
return (NULL);
}
-void
-window_set_active_at(struct window *w, u_int x, u_int y)
-{
- struct window_pane *wp;
-
- wp = window_get_active_at(w, x, y);
- if (wp != NULL && wp != w->active)
- window_set_active_pane(w, wp);
-}
-
struct window_pane *
window_find_string(struct window *w, const char *s)
{