From 7c3b090e80a9b364434120262f9bef5686cd2e2e Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Sat, 5 Aug 2017 21:27:30 +0700 Subject: [PATCH] Delete dPtr->screenSaver This is assigned, but never used. Signed-off-by: Aaron Plattner Reviewed-by: Bob Terek Tested-by: Antoine Martin --- 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 c231be4..705b9e5 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 c9ff925..24f2f28 100644 --- a/src/dummy_driver.c +++ b/src/dummy_driver.c @@ -675,15 +675,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; }