From 648b96e5d4412171d1d3e4daf6a15397e6cf9032 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 16 May 2025 13:52:53 +0200 Subject: [PATCH] randr: drop obsolete RRGetRotation() Not used anymore, so no need to keep it around anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 2 -- randr/rrinfo.c | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index fa2203502..b5ddd4177 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -584,8 +584,6 @@ extern _X_EXPORT void RRSetCurrentConfig(ScreenPtr pScreen, Rotation rotation, int rate, RRScreenSizePtr pSize); -extern _X_EXPORT Rotation RRGetRotation(ScreenPtr pScreen); - #endif /* rrcrtc.c */ diff --git a/randr/rrinfo.c b/randr/rrinfo.c index 68861dd1c..a67dddac2 100644 --- a/randr/rrinfo.c +++ b/randr/rrinfo.c @@ -297,17 +297,6 @@ RRRegisterRate(ScreenPtr pScreen, RRScreenSizePtr pSize, int rate) return TRUE; } -Rotation -RRGetRotation(ScreenPtr pScreen) -{ - RROutputPtr output = RRFirstOutput(pScreen); - - if (!output) - return RR_Rotate_0; - - return output->crtc->rotation; -} - void RRSetCurrentConfig(ScreenPtr pScreen, Rotation rotation, int rate, RRScreenSizePtr pSize)