[PATCH 11/12] vidmode: remove redundant DIX function
Olivier Fourdan
ofourdan at redhat.com
Fri Feb 5 08:48:25 UTC 2016
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.
Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
---
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 9398647..cbbc03c 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;
}
--
2.5.0
More information about the xorg-devel
mailing list