diff --git a/client.c b/client.c index c037f3e1..b3defc72 100644 --- a/client.c +++ b/client.c @@ -166,23 +166,6 @@ client_get_bywin(client_t *list, xcb_window_t w) return c; } -/** Get a client by its name. - * \param list The client_t list to look into. - * \param name Name to search. - * \return First matching client. - */ -client_t * -client_get_byname(client_t *list, char *name) -{ - client_t *c; - - for(c = list; c; c = c->next) - if(strstr(c->name, name)) - return c; - - return NULL; -} - /** Update client name attribute with its new title. * \param c The client. */ diff --git a/client.h b/client.h index d8592925..0fe4a85e 100644 --- a/client.h +++ b/client.h @@ -28,7 +28,6 @@ bool client_isvisible(client_t *, int); client_t * client_get_bywin(client_t *, xcb_window_t); -client_t * client_get_byname(client_t *, char *); bool client_focus(client_t *, int, bool); void client_stack(client_t *); void client_ban(client_t *);