From 85486246761d1af0f0f13a20606077f11fa2d799 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 14 Sep 2009 11:25:35 +0000 Subject: [PATCH] Nuke unused server_client_index function, pointed out by martynas@. --- server.c | 13 ------------- tmux.h | 1 - 2 files changed, 14 deletions(-) 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 */