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:
PatR
2022-01-02 02:03:49 -08:00
parent 37ce6f72b3
commit f1300f87c1

View File

@@ -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;
}
}
}
/*