From 7c2adcb46a01c7cf0f0e6f5aeeef070232e7d222 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 13:17:20 +0100 Subject: Convert ConfigTag::CheckRange to a function template. --- include/configreader.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index bb4c03fae..d55c1830f 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -69,16 +69,6 @@ class CoreExport ConfigTag : public refcountbase */ bool readString(const std::string& key, std::string& value, bool allow_newline = false); - /** Check for an out of range value. If the value falls outside the boundaries a warning is - * logged and the value is corrected (set to def). - * @param key The key name, used in the warning message - * @param res The value to verify and modify if needed - * @param def The default value, res will be set to this if (min <= res <= max) doesn't hold true - * @param min Minimum accepted value for res - * @param max Maximum accepted value for res - */ - void CheckRange(const std::string& key, long& res, long def, long min, long max); - std::string getTagLocation(); inline const ConfigItems& getItems() const { return items; } -- cgit v1.3.1-10-gc9f91