Commit 500683ab authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

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.
parent 773fdb6a
...@@ -1394,30 +1394,6 @@ static void nxagentParseSingleOption(char *name, char *value) ...@@ -1394,30 +1394,6 @@ static void nxagentParseSingleOption(char *name, char *value)
return; 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")) else if (!strcmp(name, "sleep"))
{ {
long sleep_parse = 0; long sleep_parse = 0;
......
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