xfree86: fbman: drop RegisterFreeBoxCallback proc pointer

Nobody calls it anymore, so no need to keep it around anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-21 14:38:39 +02:00
parent 57cd527271
commit ef49e6aa19
2 changed files with 0 additions and 40 deletions

View File

@ -277,42 +277,6 @@ SendCallFreeBoxCallbacks(FBManagerPtr offman)
} }
} }
static Bool
localRegisterFreeBoxCallback(ScreenPtr pScreen,
FreeBoxCallbackProcPtr FreeBoxCallback,
void *devPriv)
{
FBManagerPtr offman;
FreeBoxCallbackProcPtr *newCallbacks;
DevUnion *newPrivates;
offman = (FBManagerPtr) dixLookupPrivate(&pScreen->devPrivates,
xf86FBScreenKey);
newCallbacks = reallocarray(offman->FreeBoxesUpdateCallback,
offman->NumCallbacks + 1,
sizeof(FreeBoxCallbackProcPtr));
if (!newCallbacks)
return FALSE;
else
offman->FreeBoxesUpdateCallback = newCallbacks;
newPrivates = reallocarray(offman->devPrivates,
offman->NumCallbacks + 1,
sizeof(DevUnion));
if (!newPrivates)
return FALSE;
else
offman->devPrivates = newPrivates;
offman->FreeBoxesUpdateCallback[offman->NumCallbacks] = FreeBoxCallback;
offman->devPrivates[offman->NumCallbacks].ptr = devPriv;
offman->NumCallbacks++;
SendCallFreeBoxCallbacks(offman);
return TRUE;
}
static FBAreaPtr static FBAreaPtr
AllocateArea(FBManagerPtr offman, AllocateArea(FBManagerPtr offman,
int w, int h, int w, int h,
@ -1111,7 +1075,6 @@ static FBManagerFuncs xf86FBManFuncs = {
localFreeOffscreenArea, localFreeOffscreenArea,
localResizeOffscreenArea, localResizeOffscreenArea,
localQueryLargestOffscreenArea, localQueryLargestOffscreenArea,
localRegisterFreeBoxCallback,
localAllocateOffscreenLinear, localAllocateOffscreenLinear,
localFreeOffscreenLinear, localFreeOffscreenLinear,
localResizeOffscreenLinear, localResizeOffscreenLinear,

View File

@ -80,9 +80,6 @@ typedef struct {
int *width, int *height, int *width, int *height,
int granularity, int granularity,
int preferences, int priority); int preferences, int priority);
Bool (*RegisterFreeBoxCallback) (ScreenPtr pScreen,
FreeBoxCallbackProcPtr FreeBoxCallback,
void *devPriv);
/* linear functions */ /* linear functions */
FBLinearPtr(*AllocateOffscreenLinear) (ScreenPtr pScreen, FBLinearPtr(*AllocateOffscreenLinear) (ScreenPtr pScreen,
int size, int size,