summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2016-02-05 09:48:25 +0100
committerAdam Jackson <ajax@redhat.com>2016-02-29 16:29:14 -0500
commitb430f53bb753f9b064ab62d014820c1c3c76a841 (patch)
tree8577fef85c259e88fe6636ac846a16215822d4f0
parent48fccde2bfb60efdbf45a96fa53bcd9a6570bf89 (diff)
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 <ajax@redhat.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
-rw-r--r--hw/xfree86/common/xf86VidMode.c8
1 files changed, 1 insertions, 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;
}