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 <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to