client.c
changeset 772 a1dd3d977e25
parent 771 05946fa53085
child 775 920b51271fc8
--- a/client.c	Mon Feb 19 13:42:39 2007 +0100
+++ b/client.c	Mon Feb 19 13:53:40 2007 +0100
@@ -61,20 +61,6 @@
 /* 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;
 
@@ -93,24 +79,6 @@
 }
 
 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))
 		return;
@@ -135,16 +103,6 @@
 		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;