From 7f736a28cd3560613e442354379b7aefd2cca48b Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 May 2025 19:26:51 +0200 Subject: [PATCH] xf86.h: drop unused xf86GetRotation() Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 2 -- hw/xfree86/common/xf86RandR.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index f3654ffbb..7601b7bb4 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -328,8 +328,6 @@ xf86CollectOptions(ScrnInfoPtr pScrn, XF86OptionPtr extraOpts); #ifdef RANDR extern _X_EXPORT Bool xf86RandRInit(ScreenPtr pScreen); -extern _X_EXPORT Rotation -xf86GetRotation(ScreenPtr pScreen); extern _X_EXPORT Bool xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen, int newvirtX, int newvirtY, diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c index e682128b9..7b87fcb6a 100644 --- a/hw/xfree86/common/xf86RandR.c +++ b/hw/xfree86/common/xf86RandR.c @@ -359,15 +359,6 @@ static void xf86RandRCloseScreen(CallbackListPtr *pcbl, dixSetPrivate(&pScreen->devPrivates, xf86RandRKey, NULL); } -Rotation -xf86GetRotation(ScreenPtr pScreen) -{ - if (xf86RandRKey == NULL) - return RR_Rotate_0; - - return XF86RANDRINFO(pScreen)->rotation; -} - /* Function to change RandR's idea of the virtual screen size */ Bool xf86RandRSetNewVirtualAndDimensions(ScreenPtr pScreen,