From b3d7e07f18f0f69f8c3b3542615da62dfc4c6175 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 19 Feb 2007 13:53:40 +0100 Subject: some more refactoring --- client.c | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 9a30526..e7a3864 100644 --- a/client.c +++ b/client.c @@ -60,20 +60,6 @@ xerrordummy(Display *dsply, XErrorEvent *ee) { /* extern */ -void -attach(Client *c) { - if(clients) - clients->prev = c; - c->next = clients; - clients = c; -} - -void -attachstack(Client *c) { - c->snext = stack; - stack = c; -} - void configure(Client *c) { XConfigureEvent ce; @@ -92,24 +78,6 @@ configure(Client *c) { XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce); } -void -detach(Client *c) { - if(c->prev) - c->prev->next = c->next; - if(c->next) - c->next->prev = c->prev; - if(c == clients) - clients = c->next; - c->next = c->prev = NULL; -} - -void -detachstack(Client *c) { - Client **tc; - for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext); - *tc = c->snext; -} - void focus(Client *c) { if(c && !isvisible(c)) @@ -135,16 +103,6 @@ focus(Client *c) { XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); } -Client * -getclient(Window w) { - Client *c; - - for(c = clients; c; c = c->next) - if(c->win == w) - return c; - return NULL; -} - Bool isprotodel(Client *c) { int i, n; -- cgit v1.2.3-54-g00ecf