diff options
author | Adam Jackson <ajax@redhat.com> | 2016-04-18 12:56:17 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-05-11 11:21:08 -0400 |
commit | f523ebb5492a2e12b76a8b5b7f1b0e5efd4a8040 (patch) | |
tree | 96b8a61babee109d9aad99776f3ebbf6fcfe5cd8 /Xi | |
parent | 140c2f1a54dbc2503311e9a011e841aa1f277cbd (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 'Xi')
-rw-r--r-- | Xi/extinit.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c index 75f383238..7a86ee2e7 100644 --- a/Xi/extinit.c +++ b/Xi/extinit.c @@ -380,18 +380,6 @@ DevPrivateKeyRec XIClientPrivateKeyRec; * */ -static void -XIClientCallback(CallbackListPtr *list, void *closure, void *data) -{ - NewClientInfoRec *clientinfo = (NewClientInfoRec *) data; - ClientPtr pClient = clientinfo->client; - XIClientPtr pXIClient; - - pXIClient = dixLookupPrivate(&pClient->devPrivates, XIClientPrivateKey); - pXIClient->major_version = 0; - pXIClient->minor_version = 0; -} - /************************************************************************* * * ProcIDispatch - main dispatch routine for requests to this extension. @@ -1298,9 +1286,6 @@ XInputExtensionInit(void) (&XIClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(XIClientRec))) FatalError("Cannot request private for XI.\n"); - if (!AddCallback(&ClientStateCallback, XIClientCallback, 0)) - FatalError("Failed to add callback to XI.\n"); - if (!XIBarrierInit()) FatalError("Could not initialize barriers.\n"); |