choose_classes_menu was declared extern. The only caller presently was calling it was optfn_pickup_types() in options.c. It could have had the extern declaration from include/extern.h and declare it as static within options.c, if that was the only use anticipated. Also, if the one existing caller were all there would ever be, the argument passed to it that was the subject of pr #1146 could have just been removed along with the switch. Checking the comments above the function, however, it was clearly designed as a general-purpose function that could be called from anywhere for the functionality desired, even though there's presently just the one caller, passing just the one variation of the category argument. Relocate the general-purpose function over to src/windows.c, where several interface-related / menu-related general-purpose functions already reside. options.c has gotten *huge* and this is a fitting opportunity to reduce its size a little.
136 KiB
136 KiB