summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tmux/server.c15
-rw-r--r--usr.bin/tmux/tmux.h3
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 */