diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-14 11:25:36 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-09-14 11:25:36 +0000 |
commit | 9f00fc89d906c5a6addde7e01fc0ebd2b46d7927 (patch) | |
tree | 12725bee9ab741169d84a79d7a72de97a680c254 | |
parent | 215c88361f2aab5517a3ed29c4c9325c64e59f01 (diff) |
Nuke unused server_client_index function, pointed out by martynas@.
-rw-r--r-- | usr.bin/tmux/server.c | 15 | ||||
-rw-r--r-- | usr.bin/tmux/tmux.h | 3 |
2 files changed, 2 insertions, 16 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index 98fe29984b9..71384915d27 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.35 2009/09/12 13:09:43 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.36 2009/09/14 11:25:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -116,19 +116,6 @@ server_create_client(int fd) log_debug("new client %d", fd); } -/* Find client index. */ -int -server_client_index(struct client *c) -{ - u_int i; - - for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - if (c == ARRAY_ITEM(&clients, i)) - return (i); - } - return (-1); -} - /* Fork new server. */ int server_start(char *path) diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 71b38bc1901..65b33bafdde 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.103 2009/09/12 13:01:19 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.104 2009/09/14 11:25:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1435,7 +1435,6 @@ const char *key_string_lookup_key(int); /* server.c */ extern struct clients clients; extern struct clients dead_clients; -int server_client_index(struct client *); int server_start(char *); /* server-msg.c */ |