summaryrefslogtreecommitdiff
path: root/render
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 /render
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 'render')
-rw-r--r--render/render.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/render/render.c b/render/render.c
index b777991d0..b9a932ee3 100644
--- a/render/render.c
+++ b/render/render.c
@@ -219,17 +219,6 @@ typedef struct _RenderClient {
#define GetRenderClient(pClient) ((RenderClientPtr)dixLookupPrivate(&(pClient)->devPrivates, RenderClientPrivateKey))
-static void
-RenderClientCallback(CallbackListPtr *list, void *closure, void *data)
-{
- NewClientInfoRec *clientinfo = (NewClientInfoRec *) data;
- ClientPtr pClient = clientinfo->client;
- RenderClientPtr pRenderClient = GetRenderClient(pClient);
-
- pRenderClient->major_version = 0;
- pRenderClient->minor_version = 0;
-}
-
#ifdef PANORAMIX
RESTYPE XRT_PICTURE;
#endif
@@ -246,8 +235,6 @@ RenderExtensionInit(void)
if (!dixRegisterPrivateKey
(&RenderClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(RenderClientRec)))
return;
- if (!AddCallback(&ClientStateCallback, RenderClientCallback, 0))
- return;
extEntry = AddExtension(RENDER_NAME, 0, RenderNumberErrors,
ProcRenderDispatch, SProcRenderDispatch,