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

Bob Terek xorg at esoterek.com
Sat Dec 10 02:37:11 UTC 2016


On 01/24/2015 03:08 PM, Aaron Plattner wrote:
> This is assigned, but never used.
>
> Signed-off-by: Aaron Plattner <aplattner at nvidia.com>

Applied patch to current dummy driver, built, started server and a few
simple clients, used x11vnc to interact with it, so:

Reviewed-by: Bob Terek <xorg at esoterek.com>
Tested-by: Bob Terek <xorg at esoterek.com>

Cheers,

Bob Terek


> ---
>  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;
>  }
>
>


More information about the xorg-devel mailing list