These are now only used in 1 other file, I think we should just remove them and have the callsites specify which integral type they want?
0diff --git a/src/common/args.h b/src/common/args.h
1index 477f2cbf6c..ea4e173bf7 100644
2--- a/src/common/args.h
3+++ b/src/common/args.h
4@@ -96,9 +96,6 @@ Int SettingTo(const common::SettingsValue&, Int);
5 template <std::integral Int>
6 std::optional<Int> SettingTo(const common::SettingsValue&);
7
8-inline int64_t SettingToInt(const common::SettingsValue& value, int64_t nDefault) { return SettingTo<int64_t>(value, nDefault); }
9-inline std::optional<int64_t> SettingToInt(const common::SettingsValue& value) { return SettingTo<int64_t>(value); }
10-
11 bool SettingToBool(const common::SettingsValue&, bool);
12 std::optional<bool> SettingToBool(const common::SettingsValue&);
13
14diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp
15index 3d876a8f63..cfbc350f09 100644
16--- a/src/qt/optionsmodel.cpp
17+++ b/src/qt/optionsmodel.cpp
18@@ -88,14 +88,14 @@ static common::SettingsValue PruneSetting(bool prune_enabled, int prune_size_gb)
19 static bool PruneEnabled(const common::SettingsValue& prune_setting)
20 {
21 // -prune=1 setting is manual pruning mode, so disabled for purposes of the gui
22- return SettingToInt(prune_setting, 0) > 1;
23+ return SettingTo<int64_t>(prune_setting, 0) > 1;
24 }
25
26 //! Get pruning size value to show in GUI from bitcoin -prune setting. If
27 //! pruning is not enabled, just show default recommended pruning size (2GB).
28 static int PruneSizeGB(const common::SettingsValue& prune_setting)
29 {
30- int value = SettingToInt(prune_setting, 0);
31+ int value = SettingTo<int64_t>(prune_setting, 0);
32 return value > 1 ? PruneMiBtoGB(value) : DEFAULT_PRUNE_TARGET_GB;
33 }
34
35@@ -469,9 +469,9 @@ QVariant OptionsModel::getOption(OptionID option, const std::string& suffix) con
36 suffix.empty() ? getOption(option, "-prev") :
37 DEFAULT_PRUNE_TARGET_GB;
38 case DatabaseCache:
39- return qlonglong(SettingToInt(setting(), DEFAULT_DB_CACHE >> 20));
40+ return qlonglong(SettingTo<int64_t>(setting(), DEFAULT_DB_CACHE >> 20));
41 case ThreadsScriptVerif:
42- return qlonglong(SettingToInt(setting(), DEFAULT_SCRIPTCHECK_THREADS));
43+ return qlonglong(SettingTo<int64_t>(setting(), DEFAULT_SCRIPTCHECK_THREADS));
44 case Listen:
45 return SettingToBool(setting(), DEFAULT_LISTEN);
46 case Server: