[PATCH xserver 1/2] misprite: Remove some dead cache variables

Adam Jackson ajax at redhat.com
Thu May 18 15:19:52 UTC 2017


Unused since Keith ported misprite to damage in '04.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 mi/misprite.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/mi/misprite.c b/mi/misprite.c
index e682b243a..d26e3986b 100644
--- a/mi/misprite.c
+++ b/mi/misprite.c
@@ -59,8 +59,6 @@ typedef struct {
     BoxRec saved;               /* saved area from the screen */
     Bool isUp;                  /* cursor in frame buffer */
     Bool shouldBeUp;            /* cursor should be displayed */
-    WindowPtr pCacheWin;        /* window the cursor last seen in */
-    Bool isInCacheWin;
     Bool checkPixels;           /* check colormap collision */
     ScreenPtr pScreen;
 } miCursorInfoRec, *miCursorInfoPtr;
@@ -750,7 +748,6 @@ miSpriteSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen,
     }
     pPointer->x = x;
     pPointer->y = y;
-    pPointer->pCacheWin = NullWindow;
     if (pPointer->checkPixels || pPointer->pCursor != pCursor) {
         pPointer->pCursor = pCursor;
         miSpriteFindColors(pPointer, pScreen);
@@ -797,8 +794,6 @@ miSpriteDeviceCursorInitialize(DeviceIntPtr pDev, ScreenPtr pScreen)
         pCursorInfo->y = 0;
         pCursorInfo->isUp = FALSE;
         pCursorInfo->shouldBeUp = FALSE;
-        pCursorInfo->pCacheWin = NullWindow;
-        pCursorInfo->isInCacheWin = FALSE;
         pCursorInfo->checkPixels = TRUE;
         pCursorInfo->pScreen = FALSE;
     }
@@ -837,7 +832,6 @@ miSpriteRemoveCursor(DeviceIntPtr pDev, ScreenPtr pScreen)
 
     miSpriteIsDown(pCursorInfo);
     miSpriteRegisterBlockHandler(pScreen, pScreenPriv);
-    pCursorInfo->pCacheWin = NullWindow;
     miSpriteDisableDamage(pScreen, pScreenPriv);
     if (!miDCRestoreUnderCursor(pDev,
                                 pScreen,
-- 
2.12.2



More information about the xorg-devel mailing list