[PATCH xf86-video-dummy 3/6] Delete dPtr->screenSaver

Aaron Plattner aplattner at nvidia.com
Sat Jan 24 17:08:10 PST 2015


This is assigned, but never used.

Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
---
 src/dummy.h        | 1 -
 src/dummy_driver.c | 9 ---------
 2 files changed, 10 deletions(-)

diff --git a/src/dummy.h b/src/dummy.h
index c231be4c069e..705b9e5ed8b9 100644
--- a/src/dummy.h
+++ b/src/dummy.h
@@ -56,7 +56,6 @@ typedef struct dummyRec
     int cursorX, cursorY;
     int cursorFG, cursorBG;
 
-    Bool screenSaver;
     dummy_colors colors[256];
     pointer* FBBase;
     Bool        (*CreateWindow)() ;     /* wrapped CreateWindow */
diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index e3b762304d5a..4d833f90cc63 100644
--- a/src/dummy_driver.c
+++ b/src/dummy_driver.c
@@ -680,15 +680,6 @@ DUMMYFreeScreen(FREE_SCREEN_ARGS_DECL)
 static Bool
 DUMMYSaveScreen(ScreenPtr pScreen, int mode)
 {
-    ScrnInfoPtr pScrn = NULL;
-    DUMMYPtr dPtr;
-
-    if (pScreen != NULL) {
-	pScrn = xf86ScreenToScrn(pScreen);
-	dPtr = DUMMYPTR(pScrn);
-
-	dPtr->screenSaver = xf86IsUnblank(mode);
-    } 
     return TRUE;
 }
 
-- 
2.2.2



More information about the xorg-devel mailing list