Commit 0eab060d authored by Ulrich Sibiller's avatar Ulrich Sibiller

dix: remove unused requestLogIndex

As done in these commits: commit 6583477035234e23ead2fad9db7a07e5862447a4 Author: Nicolai Hähnle <nhaehnle@gmail.com> Date: Sat May 23 13:35:24 2009 +0200 Remove reference to non-existing requestLog and requestLogIndex These fields were removed in 252ec504817e05b185e4896a2d899e9c00b8aeef. Signed-off-by: 's avatarNicolai Haehnle <nhaehnle@gmail.com> Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net> commit 252ec504817e05b185e4896a2d899e9c00b8aeef Author: Adam Jackson <ajax@redhat.com> Date: Mon Mar 30 15:18:30 2009 -0400 Document which bits of ClientRec are currently unused
parent 789d3a37
...@@ -416,12 +416,6 @@ Dispatch(void) ...@@ -416,12 +416,6 @@ Dispatch(void)
} }
client->sequence++; client->sequence++;
#ifdef DEBUG
if (client->requestLogIndex == MAX_REQUEST_LOG)
client->requestLogIndex = 0;
client->requestLog[client->requestLogIndex] = MAJOROP;
client->requestLogIndex++;
#endif
if (result > (maxBigRequestSize << 2)) if (result > (maxBigRequestSize << 2))
result = BadLength; result = BadLength;
else else
...@@ -3622,9 +3616,6 @@ void InitClient(ClientPtr client, int i, void * ospriv) ...@@ -3622,9 +3616,6 @@ void InitClient(ClientPtr client, int i, void * ospriv)
client->numSaved = 0; client->numSaved = 0;
client->saveSet = (SaveSetElt *)NULL; client->saveSet = (SaveSetElt *)NULL;
client->noClientException = Success; client->noClientException = Success;
#ifdef DEBUG
client->requestLogIndex = 0;
#endif
client->requestVector = InitialVector; client->requestVector = InitialVector;
client->osPrivate = ospriv; client->osPrivate = ospriv;
client->swapped = FALSE; client->swapped = FALSE;
......
...@@ -468,12 +468,6 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio ...@@ -468,12 +468,6 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
#endif #endif
client->sequence++; client->sequence++;
#ifdef DEBUG
if ((client->requestLogIndex >= MAX_REQUEST_LOG) || (client->requestLogIndex <= 0))
client->requestLogIndex = 0;
client->requestLog[client->requestLogIndex] = MAJOROP;
client->requestLogIndex++;
#endif
if (result > (maxBigRequestSize << 2)) if (result > (maxBigRequestSize << 2))
result = BadLength; result = BadLength;
else else
......
...@@ -37,10 +37,6 @@ SOFTWARE. ...@@ -37,10 +37,6 @@ SOFTWARE.
* translation from client ids to server addresses. * translation from client ids to server addresses.
*/ */
#ifdef DEBUG
#define MAX_REQUEST_LOG 100
#endif
extern CallbackListPtr ClientStateCallback; extern CallbackListPtr ClientStateCallback;
typedef struct { typedef struct {
...@@ -121,10 +117,6 @@ typedef struct _Client { ...@@ -121,10 +117,6 @@ typedef struct _Client {
KeyCode minKC,maxKC; KeyCode minKC,maxKC;
#endif #endif
#ifdef DEBUG
unsigned char requestLog[MAX_REQUEST_LOG];
int requestLogIndex;
#endif
unsigned long replyBytesRemaining; unsigned long replyBytesRemaining;
#ifdef XCSECURITY #ifdef XCSECURITY
XID authId; XID authId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment