mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Nuke unused server_client_index function, pointed out by martynas@.
This commit is contained in:
		
							
								
								
									
										13
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								server.c
									
									
									
									
									
								
							@@ -116,19 +116,6 @@ server_create_client(int fd)
 | 
				
			|||||||
	log_debug("new client %d", 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. */
 | 
					/* Fork new server. */
 | 
				
			||||||
int
 | 
					int
 | 
				
			||||||
server_start(char *path)
 | 
					server_start(char *path)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							@@ -1435,7 +1435,6 @@ const char *key_string_lookup_key(int);
 | 
				
			|||||||
/* server.c */
 | 
					/* server.c */
 | 
				
			||||||
extern struct clients clients;
 | 
					extern struct clients clients;
 | 
				
			||||||
extern struct clients dead_clients;
 | 
					extern struct clients dead_clients;
 | 
				
			||||||
int	 server_client_index(struct client *);
 | 
					 | 
				
			||||||
int	 server_start(char *);
 | 
					int	 server_start(char *);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* server-msg.c */
 | 
					/* server-msg.c */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user