From f1300f87c119d4e8c0175389b77506dc2b78e6c4 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 2 Jan 2022 02:03:49 -0800 Subject: [PATCH] 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. --- src/options.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/options.c b/src/options.c index 6c48ec218..a2c73e215 100644 --- a/src/options.c +++ b/src/options.c @@ -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; - } - } } /*