aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-22 19:39:17 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-11-15 12:10:16 +0100
commit500683ab59a70c098eb014b81407f77c2d2c1cef (patch)
tree218aa71c5c528b3741cfed109c1807a519d99260
parent773fdb6a81f81f466a8e36ffc3afd96bd29abf7e (diff)
downloadnx-libs-500683ab59a70c098eb014b81407f77c2d2c1cef.tar.gz
nx-libs-500683ab59a70c098eb014b81407f77c2d2c1cef.tar.bz2
nx-libs-500683ab59a70c098eb014b81407f77c2d2c1cef.zip
Args.c: remove unreachable code
Right at the beginnigng of nxagentParseSingleOption we check for "clipboard" and prepare argv and argc accordingly for ddxProcessArgument. The removed code thus could never be reached.
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Args.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Args.c b/nx-X11/programs/Xserver/hw/nxagent/Args.c
index 846af98c5..9a5cd3ad8 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -1394,30 +1394,6 @@ static void nxagentParseSingleOption(char *name, char *value)
return;
}
- else if (strcmp(name, "clipboard") == 0)
- {
- if ((strcmp(value, "both") == 0) || (strcmp(value, "1") == 0))
- {
- nxagentChangeOption(Clipboard, ClipboardBoth);
- }
- else if (strcmp(value, "client") == 0)
- {
- nxagentChangeOption(Clipboard, ClipboardClient);
- }
- else if (strcmp(value, "server") == 0)
- {
- nxagentChangeOption(Clipboard, ClipboardServer);
- }
- else if ((strcmp(value, "none") == 0) || (strcmp(value, "0") == 0))
- {
- nxagentChangeOption(Clipboard, ClipboardNone);
- }
- else
- {
- nxagentChangeOption(Clipboard, ClipboardBoth);
- }
- return;
- }
else if (!strcmp(name, "sleep"))
{
long sleep_parse = 0;