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 /damageext/damageext.c | |
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 'damageext/damageext.c')
-rw-r--r-- | damageext/damageext.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/damageext/damageext.c b/damageext/damageext.c index 886f56d9e..86b54eef4 100644 --- a/damageext/damageext.c +++ b/damageext/damageext.c @@ -568,24 +568,6 @@ SProcDamageDispatch(ClientPtr client) return (*SProcDamageVector[stuff->damageReqType]) (client); } -static void -DamageClientCallback(CallbackListPtr *list, void *closure, void *data) -{ - NewClientInfoRec *clientinfo = (NewClientInfoRec *) data; - ClientPtr pClient = clientinfo->client; - DamageClientPtr pDamageClient = GetDamageClient(pClient); - - pDamageClient->critical = 0; - pDamageClient->major_version = 0; - pDamageClient->minor_version = 0; -} - - /*ARGSUSED*/ static void -DamageResetProc(ExtensionEntry * extEntry) -{ - DeleteCallback(&ClientStateCallback, DamageClientCallback, 0); -} - static int FreeDamageExt(void *value, XID did) { @@ -757,13 +739,10 @@ DamageExtensionInit(void) (&DamageClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(DamageClientRec))) return; - if (!AddCallback(&ClientStateCallback, DamageClientCallback, 0)) - return; - if ((extEntry = AddExtension(DAMAGE_NAME, XDamageNumberEvents, XDamageNumberErrors, ProcDamageDispatch, SProcDamageDispatch, - DamageResetProc, StandardMinorOpcode)) != 0) { + NULL, StandardMinorOpcode)) != 0) { DamageReqCode = (unsigned char) extEntry->base; DamageEventBase = extEntry->eventBase; EventSwapVector[DamageEventBase + XDamageNotify] = |