summaryrefslogtreecommitdiff
path: root/Xext
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 /Xext
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 'Xext')
-rw-r--r--Xext/geext.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/Xext/geext.c b/Xext/geext.c
index 6285f69f7..6312f248b 100644
--- a/Xext/geext.c
+++ b/Xext/geext.c
@@ -145,28 +145,10 @@ SProcGEDispatch(ClientPtr client)
return (*SProcGEVector[stuff->ReqType]) (client);
}
-/**
- * Called when a new client inits a connection to the X server.
- *
- * We alloc a simple struct to store the client's major/minor version. Can be
- * used in the furture for versioning support.
- */
-static void
-GEClientCallback(CallbackListPtr *list, void *closure, void *data)
-{
- NewClientInfoRec *clientinfo = (NewClientInfoRec *) data;
- ClientPtr pClient = clientinfo->client;
- GEClientInfoPtr pGEClient = GEGetClient(pClient);
-
- pGEClient->major_version = 0;
- pGEClient->minor_version = 0;
-}
-
/* Reset extension. Called on server shutdown. */
static void
GEResetProc(ExtensionEntry * extEntry)
{
- DeleteCallback(&ClientStateCallback, GEClientCallback, 0);
EventSwapVector[GenericEvent] = NotImplemented;
}
@@ -205,10 +187,6 @@ GEExtensionInit(void)
(&GEClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(GEClientInfoRec)))
FatalError("GEExtensionInit: GE private request failed.\n");
- if (!AddCallback(&ClientStateCallback, GEClientCallback, 0)) {
- FatalError("GEExtensionInit: register client callback failed.\n");
- }
-
if ((extEntry = AddExtension(GE_NAME,
0, GENumberErrors,
ProcGEDispatch, SProcGEDispatch,