remove duplicate code in set_option_mod_status()
Remove a duplicate option name lookup loop. At one time the first loop checked boolean options and second checked compound options, but that changed a couple of years ago so that both loops check all options and the second one became redundant.
This commit is contained in:
@@ -8324,12 +8324,6 @@ set_option_mod_status(const char *optnam, int status)
|
||||
return;
|
||||
}
|
||||
}
|
||||
for (k = 0; allopt[k].name; k++) {
|
||||
if (!strncmpi(allopt[k].name, optnam, strlen(optnam))) {
|
||||
allopt[k].setwhere = status;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user