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>
This commit is contained in:
parent
48fccde2bf
commit
b430f53bb7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user