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 /xfixes | |
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 'xfixes')
-rw-r--r-- | xfixes/xfixes.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c index 3307f874b..8d1bd4cc6 100644 --- a/xfixes/xfixes.c +++ b/xfixes/xfixes.c @@ -212,23 +212,6 @@ SProcXFixesDispatch(ClientPtr client) return (*SProcXFixesVector[stuff->xfixesReqType]) (client); } -static void -XFixesClientCallback(CallbackListPtr *list, void *closure, void *data) -{ - NewClientInfoRec *clientinfo = (NewClientInfoRec *) data; - ClientPtr pClient = clientinfo->client; - XFixesClientPtr pXFixesClient = GetXFixesClient(pClient); - - pXFixesClient->major_version = 0; - pXFixesClient->minor_version = 0; -} - - /*ARGSUSED*/ static void -XFixesResetProc(ExtensionEntry * extEntry) -{ - DeleteCallback(&ClientStateCallback, XFixesClientCallback, 0); -} - void XFixesExtensionInit(void) { @@ -237,14 +220,12 @@ XFixesExtensionInit(void) if (!dixRegisterPrivateKey (&XFixesClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(XFixesClientRec))) return; - if (!AddCallback(&ClientStateCallback, XFixesClientCallback, 0)) - return; if (XFixesSelectionInit() && XFixesCursorInit() && XFixesRegionInit() && (extEntry = AddExtension(XFIXES_NAME, XFixesNumberEvents, XFixesNumberErrors, ProcXFixesDispatch, SProcXFixesDispatch, - XFixesResetProc, StandardMinorOpcode)) != 0) { + NULL, StandardMinorOpcode)) != 0) { XFixesReqCode = (unsigned char) extEntry->base; XFixesEventBase = extEntry->eventBase; XFixesErrorBase = extEntry->errorBase; |