From b430f53bb753f9b064ab62d014820c1c3c76a841 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Fri, 5 Feb 2016 09:48:25 +0100 Subject: [PATCH] vidmode: remove redundant DIX function The API signature of the DIX xf86VidModeGetGammaRampSize() is now identical to the xf86cmap's xf86GetGammaRampSize() and all it does is actually call xf86GetGammaRampSize() so we can save one vfunc. Remove uneeded xf86VidModeGetGammaRampSize() function. Reviewed-by: Adam Jackson Signed-off-by: Olivier Fourdan --- hw/xfree86/common/xf86VidMode.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hw/xfree86/common/xf86VidMode.c b/hw/xfree86/common/xf86VidMode.c index b7ccfb25c..7e12ea2cc 100644 --- a/hw/xfree86/common/xf86VidMode.c +++ b/hw/xfree86/common/xf86VidMode.c @@ -393,12 +393,6 @@ xf86VidModeGetGammaRamp(ScreenPtr pScreen, int size, CARD16 *r, CARD16 *g, CARD1 return TRUE; } -static int -xf86VidModeGetGammaRampSize(ScreenPtr pScreen) -{ - return xf86GetGammaRampSize(pScreen); -} - static Bool xf86VidModeInit(ScreenPtr pScreen) { @@ -438,7 +432,7 @@ xf86VidModeInit(ScreenPtr pScreen) pVidMode->GetGamma = xf86VidModeGetGamma; pVidMode->SetGammaRamp = xf86VidModeSetGammaRamp; pVidMode->GetGammaRamp = xf86VidModeGetGammaRamp; - pVidMode->GetGammaRampSize = xf86VidModeGetGammaRampSize; + pVidMode->GetGammaRampSize = xf86GetGammaRampSize; /* use xf86cmap API directly */ return TRUE; }