From 9f00fc89d906c5a6addde7e01fc0ebd2b46d7927 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 14 Sep 2009 11:25:36 +0000 Subject: Nuke unused server_client_index function, pointed out by martynas@. --- usr.bin/tmux/server.c | 15 +-------------- 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 @@ -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 @@ -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 */ -- cgit v1.2.3