Remove unused code branch in setcmd()

If cnt == 0, that implies that dll == NULL (if the list search returned an entry, it at least must match
the prefix we're looking for).
This commit is contained in:
Kevin Easton
2017-11-03 01:18:04 +11:00
parent 574053da52
commit 59d237d819

View File

@@ -1165,15 +1165,10 @@ enum VAR_TYPES var_index = 0;
set_var_value(var_index, args); set_var_value(var_index, args);
} }
else if (cnt == 0) else if (cnt == 0)
{
if (!dll)
{ {
if (do_hook(SET_LIST, "set-error No such variable \"%s\"", var)) if (do_hook(SET_LIST, "set-error No such variable \"%s\"", var))
say("No such variable \"%s\"", var); say("No such variable \"%s\"", var);
} }
else
set_var_value_dll(dll, args);
}
else else
{ {
if (do_hook(SET_LIST, "set-error %s is ambiguous", var)) if (do_hook(SET_LIST, "set-error %s is ambiguous", var))