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 --- composite/compext.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'composite') diff --git a/composite/compext.c b/composite/compext.c index f1a825573..b95bf999e 100644 --- a/composite/compext.c +++ b/composite/compext.c @@ -66,17 +66,6 @@ typedef struct _CompositeClient { #define GetCompositeClient(pClient) ((CompositeClientPtr) \ dixLookupPrivate(&(pClient)->devPrivates, CompositeClientPrivateKey)) -static void -CompositeClientCallback(CallbackListPtr *list, void *closure, void *data) -{ - NewClientInfoRec *clientinfo = (NewClientInfoRec *) data; - ClientPtr pClient = clientinfo->client; - CompositeClientPtr pCompositeClient = GetCompositeClient(pClient); - - pCompositeClient->major_version = 0; - pCompositeClient->minor_version = 0; -} - static int FreeCompositeClientWindow(void *value, XID ccwid) { @@ -580,9 +569,6 @@ CompositeExtensionInit(void) sizeof(CompositeClientRec))) return; - if (!AddCallback(&ClientStateCallback, CompositeClientCallback, 0)) - return; - for (s = 0; s < screenInfo.numScreens; s++) if (!compScreenInit(screenInfo.screens[s])) return; -- cgit v1.2.3