diff options
author | okan | 2008-06-12 18:55:35 +0000 |
---|---|---|
committer | okan | 2008-06-12 18:55:35 +0000 |
commit | 7cafaf2a59a0f1dcb70968af93be073f6745a4dc (patch) | |
tree | f4ee5af315a71eff40477de3238b078594e49e3b /grab.c | |
parent | 6c0b80a21fe472dddaa1224b1f775b9dfdb161c7 (diff) | |
download | cwm-7cafaf2a59a0f1dcb70968af93be073f6745a4dc.tar.gz |
remove old (moved) code
ok oga@
Diffstat (limited to 'grab.c')
-rw-r--r-- | grab.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -15,14 +15,13 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: grab.c,v 1.16 2008/06/12 18:32:06 okan Exp $ + * $Id: grab.c,v 1.17 2008/06/12 18:55:35 okan Exp $ */ #include "headers.h" #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); -} |