summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-04-18 12:56:17 -0400
committerAdam Jackson <ajax@redhat.com>2016-05-11 11:21:08 -0400
commitf523ebb5492a2e12b76a8b5b7f1b0e5efd4a8040 (patch)
tree96b8a61babee109d9aad99776f3ebbf6fcfe5cd8 /composite
parent140c2f1a54dbc2503311e9a011e841aa1f277cbd (diff)
dix: Remove pointless client-state callbacks
Private storage is pre-zeroed by the private system itself. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'composite')
-rw-r--r--composite/compext.c14
1 files changed, 0 insertions, 14 deletions
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;