[client] Remove useless client_get_byname()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-20 19:59:58 +02:00
parent 1c4acbe38c
commit ec21647c87
2 changed files with 0 additions and 18 deletions

View File

@ -166,23 +166,6 @@ client_get_bywin(client_t *list, xcb_window_t w)
return c; 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. /** Update client name attribute with its new title.
* \param c The client. * \param c The client.
*/ */

View File

@ -28,7 +28,6 @@
bool client_isvisible(client_t *, int); bool client_isvisible(client_t *, int);
client_t * client_get_bywin(client_t *, xcb_window_t); 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); bool client_focus(client_t *, int, bool);
void client_stack(client_t *); void client_stack(client_t *);
void client_ban(client_t *); void client_ban(client_t *);