summary refs log tree commit diff
diff options
context:
space:
mode:
authormarc <marc>2008-01-02 20:47:11 +0000
committermarc <marc>2008-01-02 20:47:11 +0000
commit01a3f493d6ff55f0c054329bb81941ff133e1f47 (patch)
tree866a41b94cf3dcce671e7440d46955d1769d059c
parent219f297493ae2593fd3dc92a0ad454f4fdc5e62f (diff)
downloadcwm-01a3f493d6ff55f0c054329bb81941ff133e1f47.tar.gz
cwm-01a3f493d6ff55f0c054329bb81941ff133e1f47.tar.xz
cwm-01a3f493d6ff55f0c054329bb81941ff133e1f47.zip
remove unused code
OK oga@
-rw-r--r--Makefile2
-rw-r--r--geographic.c53
2 files changed, 1 insertions, 54 deletions
diff --git a/Makefile b/Makefile
index 2d84ba7..91c464c 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ X11BASE?=	/usr/X11R6
 PROG=		cwm
 
 SRCS=		calmwm.c draw.c screen.c xmalloc.c client.c grab.c search.c \
-		util.c xutil.c conf.c input.c xevents.c group.c geographic.c \
+		util.c xutil.c conf.c input.c xevents.c group.c \
 		kbfunc.c cursor.c font.c
 
 CPPFLAGS+=	-I${X11BASE}/include -I${X11BASE}/include/freetype2
diff --git a/geographic.c b/geographic.c
deleted file mode 100644
index b516fad..0000000
--- a/geographic.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * calmwm - the calm window manager
- *
- * Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
- * All rights reserved.
- *
- * $Id$
- */
-
-#include "headers.h"
-#include "calmwm.h"
-
-struct client_ctx *
-geographic_west(struct client_ctx *from_cc)
-{
-/* 	Window *wins, w0, w1; */
-/* 	struct screen_ctx *sc = screen_current(); */
-/* 	u_int nwins, i; */
-/* 	struct client_ctx *cc; */
-
-	screen_updatestackingorder();
-
-	return (NULL);
-}
-
-#if 0
-int
-_visible(struct client_ctx *this_cc)
-{
-	int stacking = cc->stackingorder;
-	struct client_ctx *cc;
-
-	if (cc->flags & CLIENT_HIDDEN)
-		return (0);
-
-	TAILQ_FOREACH(cc, &Clientq, entry) {
-		if (cc->flags & CLIENT_HIDDEN)
-			continue;
-
-		if (cc->stackingorder > stacking &&
-		    cc->geom.x <= this_cc->geom.x &&
-		    cc->geom.y <= this_cc->geom.y &&
-		    cc->geom.width > (this_cc->geom.width +
-			(this_cc->geom.x - cc->geom.x) &&
-
-
-		    cc->geom.height > (this_cc->geom.height - cc->geom.height))
-			return (0);
-	}
-
-	return (1);
-}
-#endif