From f523ebb5492a2e12b76a8b5b7f1b0e5efd4a8040 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 18 Apr 2016 12:56:17 -0400 Subject: dix: Remove pointless client-state callbacks Private storage is pre-zeroed by the private system itself. Signed-off-by: Adam Jackson Reviewed-by: Eric Anholt --- render/render.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'render') diff --git a/render/render.c b/render/render.c index b777991d0..b9a932ee3 100644 --- a/render/render.c +++ b/render/render.c @@ -219,17 +219,6 @@ typedef struct _RenderClient { #define GetRenderClient(pClient) ((RenderClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RenderClientPrivateKey)) -static void -RenderClientCallback(CallbackListPtr *list, void *closure, void *data) -{ - NewClientInfoRec *clientinfo = (NewClientInfoRec *) data; - ClientPtr pClient = clientinfo->client; - RenderClientPtr pRenderClient = GetRenderClient(pClient); - - pRenderClient->major_version = 0; - pRenderClient->minor_version = 0; -} - #ifdef PANORAMIX RESTYPE XRT_PICTURE; #endif @@ -246,8 +235,6 @@ RenderExtensionInit(void) if (!dixRegisterPrivateKey (&RenderClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(RenderClientRec))) return; - if (!AddCallback(&ClientStateCallback, RenderClientCallback, 0)) - return; extEntry = AddExtension(RENDER_NAME, 0, RenderNumberErrors, ProcRenderDispatch, SProcRenderDispatch, -- cgit v1.2.3