[PATCH] xinerama: drop unused PanoramiXScreenRegion

Dave Airlie airlied at gmail.com
Tue Oct 26 22:44:21 PDT 2010


From: Dave Airlie <airlied at redhat.com>

I can't see this region actually being used anywhere in the code.
---
 Xext/panoramiX.c |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c
index d455e28..4018128 100644
--- a/Xext/panoramiX.c
+++ b/Xext/panoramiX.c
@@ -71,8 +71,6 @@ int 		PanoramiXPixWidth = 0;
 int 		PanoramiXPixHeight = 0;
 int 		PanoramiXNumScreens = 0;
 
-static RegionRec   	PanoramiXScreenRegion = {{0, 0, 0, 0}, NULL};
-
 static int		PanoramiXNumDepths;
 static DepthPtr		PanoramiXDepths;
 static int		PanoramiXNumVisuals;
@@ -151,9 +149,6 @@ XineramaCloseScreen (int i, ScreenPtr pScreen)
     pScreen->CloseScreen = pScreenPriv->CloseScreen;
     pScreen->CreateGC = pScreenPriv->CreateGC;
 
-    if (pScreen->myNum == 0)
-	RegionUninit(&PanoramiXScreenRegion);
-
     free((pointer) pScreenPriv);
 
     return (*pScreen->CloseScreen) (i, pScreen);
@@ -386,24 +381,6 @@ static void XineramaInitData(ScreenPtr pScreen)
 {
     int i, w, h;
 
-    RegionNull(&PanoramiXScreenRegion);
-    for (i = 0; i < PanoramiXNumScreens; i++) {
-	BoxRec TheBox;
-	RegionRec ScreenRegion;
-
-        pScreen = screenInfo.screens[i];
-
-	TheBox.x1 = pScreen->x;
-	TheBox.x2 = TheBox.x1 + pScreen->width;
-	TheBox.y1 = pScreen->y;
-	TheBox.y2 = TheBox.y1 + pScreen->height;
-
-	RegionInit(&ScreenRegion, &TheBox, 1);
-	RegionUnion(&PanoramiXScreenRegion, &PanoramiXScreenRegion,
-		     &ScreenRegion);
-	RegionUninit(&ScreenRegion);
-    }
-
     PanoramiXPixWidth = screenInfo.screens[0]->x + screenInfo.screens[0]->width;
     PanoramiXPixHeight = screenInfo.screens[0]->y + screenInfo.screens[0]->height;
 
@@ -421,7 +398,6 @@ static void XineramaInitData(ScreenPtr pScreen)
 
 void XineramaReinitData(ScreenPtr pScreen)
 {
-    RegionUninit(&PanoramiXScreenRegion);
     XineramaInitData(pScreen);
 }
 
-- 
1.7.2.3



More information about the xorg-devel mailing list