From e42586c712baa560d98ed6838cc22f3fb81d3813 Mon Sep 17 00:00:00 2001 From: Nicolas Bonifas Date: Sun, 13 Sep 2009 22:28:40 +0200 Subject: [PATCH] Remove commented code in xinerama.c --- src/xinerama.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/src/xinerama.c b/src/xinerama.c index 786c214d..dbcda223 100644 --- a/src/xinerama.c +++ b/src/xinerama.c @@ -220,45 +220,6 @@ int wGetHeadForWindow(WWindow * wwin) return wGetHeadForRect(wwin->screen_ptr, rect); } -/* -int -wGetHeadForPoint(WScreen *scr, WMPoint point, int *flags) -{ - int i; - - // paranoia - if (flags == NULL) { - static int tmp; - flags = &tmp; - } - *flags = XFLAG_NONE; - - for (i = 0; i < scr->xine_info.count; i++) { -#if 0 - int yy, xx; - - xx = scr->xine_info.screens[i].pos.x + scr->xine_info.screens[i].size.width; - yy = scr->xine_info.screens[i].pos.y + scr->xine_info.screens[i].size.height; - if (point.x >= scr->xine_info.screens[i].pos.x && - point.y >= scr->xine_info.screens[i].pos.y && - point.x < xx && point.y < yy) { - return i; - } -#else - XineramaScreenInfo *xsi = &scr->xine_info.screens[i]; - - if ((unsigned)(point.x - xsi->x_org) < xsi->width && - (unsigned)(point.y - xsi->y_org) < xsi->height) - return i; -#endif - } - - *flags |= XFLAG_DEAD; - - return scr->xine_primary_head; -} -*/ - int wGetHeadForPoint(WScreen * scr, WMPoint point) { int i; -- 2.11.4.GIT