diff --git a/server.c b/server.c index 504269ea..4afab67d 100644 --- a/server.c +++ b/server.c @@ -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/tmux.h b/tmux.h index ed7242c5..63f75577 100644 --- a/tmux.h +++ b/tmux.h @@ -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 */