From 6b53ff6f42d60511ed577ed907846b44c2252d4f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 May 2025 19:27:46 +0200 Subject: [PATCH] xfree86: xf86.h: drop unused xf86RandRSetNewVirtualAndDimensions() Not used anywhere, so no need to keep it around anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 5 ----- hw/xfree86/common/xf86RandR.c | 38 ----------------------------------- 2 files changed, 43 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 7601b7bb4..e3a550889 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -328,11 +328,6 @@ xf86CollectOptions(ScrnInfoPtr pScrn, XF86OptionPtr extraOpts); #ifdef RANDR extern _X_EXPORT Bool xf86RandRInit(ScreenPtr pScreen); -extern _X_EXPORT Bool -xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen, - int newvirtX, int newvirtY, - int newmmWidth, int newmmHeight, - Bool resetMode); #endif /* xf86Extensions.c */ diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c index 7b87fcb6a..f441c69b6 100644 --- a/hw/xfree86/common/xf86RandR.c +++ b/hw/xfree86/common/xf86RandR.c @@ -359,44 +359,6 @@ static void xf86RandRCloseScreen(CallbackListPtr *pcbl, dixSetPrivate(&pScreen->devPrivates, xf86RandRKey, NULL); } -/* Function to change RandR's idea of the virtual screen size */ -Bool -xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen, - int newvirtX, int newvirtY, int newmmWidth, - int newmmHeight, Bool resetMode) -{ - XF86RandRInfoPtr randrp; - - if (xf86RandRKey == NULL) - return FALSE; - - randrp = XF86RANDRINFO(pScreen); - if (randrp == NULL) - return FALSE; - - if (newvirtX > 0) - randrp->virtualX = newvirtX; - - if (newvirtY > 0) - randrp->virtualY = newvirtY; - - if (newmmWidth > 0) - randrp->mmWidth = newmmWidth; - - if (newmmHeight > 0) - randrp->mmHeight = newmmHeight; - - /* This is only for during server start */ - if (resetMode) { - ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); - return (xf86RandRSetMode(pScreen, - pScrn->currentMode, - TRUE, pScreen->mmWidth, pScreen->mmHeight)); - } - - return TRUE; -} - Bool xf86RandRInit(ScreenPtr pScreen) {