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 /render | |
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 'render')
-rw-r--r-- | render/render.c | 13 |
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, |