[client] Remove useless client_get_byname()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1c4acbe38c
commit
ec21647c87
17
client.c
17
client.c
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
1
client.h
1
client.h
|
@ -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 *);
|
||||||
|
|
Loading…
Reference in New Issue