summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2008-06-12 18:55:35 +0000
committerokan <okan>2008-06-12 18:55:35 +0000
commitff9e573e1de0b1fa78c37820b9bf99ba0bb196a6 (patch)
treed9d65499319a27d89d4e3a5f7e1495e22395c779
parent198bb381a96c14aec2b542879f966a53992c8184 (diff)
downloadcwm-ff9e573e1de0b1fa78c37820b9bf99ba0bb196a6.tar.gz
cwm-ff9e573e1de0b1fa78c37820b9bf99ba0bb196a6.tar.xz
cwm-ff9e573e1de0b1fa78c37820b9bf99ba0bb196a6.zip
remove old (moved) code
ok oga@
-rw-r--r--grab.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/grab.c b/grab.c
index eb3abd8..f7e9589 100644
--- a/grab.c
+++ b/grab.c
@@ -22,7 +22,6 @@
 #include "calmwm.h"
 
 static int	_sweepcalc(struct client_ctx *, int, int, int, int);
-static int	menu_calc_entry(int, int, int, int, int);
 
 #define ADJUST_HEIGHT(cc, dy)	((cc->geom.height - cc->geom.min_dy)/ dy)
 #define ADJUST_WIDTH(cc, dx)	((cc->geom.width - cc->geom.min_dx)/ dx)
@@ -185,16 +184,3 @@ _sweepcalc(struct client_ctx *cc, int x0, int y0, int motionx, int motiony)
 
 	return (width != cc->geom.width || height != cc->geom.height);
 }
-
-static int
-menu_calc_entry(int x, int y, int width, int height, int noentries)
-{
-	int entry = y/height;
-
-	/* in bounds? */
-	if (x < 0 || x > width || y < 0 || y > height*noentries ||
-	    entry < 0 || entry >= noentries)
-		entry = -1;
-
-	return (entry);
-}