diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-08-16 13:08:42 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-08-27 08:12:39 +0200 |
commit | c34d1b2011236c7b69dac09b78cdfb972e20ef6a (patch) | |
tree | c5b929a668a916120040f5a3f8d130ba3c09bb2a | |
parent | ab80152370da820cb42f22a500c1342bbb3ca3c8 (diff) | |
download | nx-libs-c34d1b2011236c7b69dac09b78cdfb972e20ef6a.tar.gz nx-libs-c34d1b2011236c7b69dac09b78cdfb972e20ef6a.tar.bz2 nx-libs-c34d1b2011236c7b69dac09b78cdfb972e20ef6a.zip |
NXdispatch.c: drop currentDispatch variable
was only used once
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c index 0ad26b0bb..da7a55b69 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c @@ -244,8 +244,6 @@ Dispatch(void) register HWEventQueuePtr* icheck = checkForInput; long start_tick; - unsigned long currentDispatch = 0; - nextFreeClientID = 1; InitSelections(); nClients = 0; @@ -371,18 +369,15 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio #ifdef NXAGENT_ONSTART - currentDispatch = GetTimeInMillis(); - - /* - * If the timeout is expired set the - * selection informing the NX client - * that the agent is ready. - */ + /* + * If the timeout is expired set the selection informing the + * NX client that the agent is ready. + */ - if (nxagentWMtimeout < currentDispatch) - { - nxagentRemoveSplashWindow(); - } + if (nxagentWMtimeout < GetTimeInMillis()) + { + nxagentRemoveSplashWindow(); + } nxagentClients = nClients; |