summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2024-07-20 07:41:01 +0200
committerGitHub <noreply@github.com>2024-07-20 09:11:01 +0330
commit21f86d1c3c0d48ca8f31c6d6f29005fe492a9a2e (patch)
treed01cf96cbd2263c541f2bedf93054349f1093779 /src/common
parent5c09a3194e09e4c1c6a752a8648f50ee342e1157 (diff)
chore(Core/Misc): Remove deprecated code (#19413)
* Config - Deprecated for 3 years * ChatCommand - Deprecated for 2 years * getLevel() - Deprecated for 2 years * SendGlobalText - Deprecated for 8 years +
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Configuration/Config.cpp24
-rw-r--r--src/common/Configuration/Config.h20
2 files changed, 0 insertions, 44 deletions
diff --git a/src/common/Configuration/Config.cpp b/src/common/Configuration/Config.cpp
index 8dcb65b155..0cd69584d3 100644
--- a/src/common/Configuration/Config.cpp
+++ b/src/common/Configuration/Config.cpp
@@ -649,30 +649,6 @@ bool ConfigMgr::LoadModulesConfigs(bool isReload /*= false*/, bool isNeedPrintIn
return true;
}
-/// @deprecated DO NOT USE - use GetOption<std::string> instead.
-std::string ConfigMgr::GetStringDefault(std::string const& name, const std::string& def, bool showLogs /*= true*/)
-{
- return GetOption<std::string>(name, def, showLogs);
-}
-
-/// @deprecated DO NOT USE - use GetOption<bool> instead.
-bool ConfigMgr::GetBoolDefault(std::string const& name, bool def, bool showLogs /*= true*/)
-{
- return GetOption<bool>(name, def, showLogs);
-}
-
-/// @deprecated DO NOT USE - use GetOption<int32> instead.
-int ConfigMgr::GetIntDefault(std::string const& name, int def, bool showLogs /*= true*/)
-{
- return GetOption<int32>(name, def, showLogs);
-}
-
-/// @deprecated DO NOT USE - use GetOption<float> instead.
-float ConfigMgr::GetFloatDefault(std::string const& name, float def, bool showLogs /*= true*/)
-{
- return GetOption<float>(name, def, showLogs);
-}
-
#define TEMPLATE_CONFIG_OPTION(__typename) \
template __typename ConfigMgr::GetOption<__typename>(std::string const& name, __typename const& def, bool showLogs /*= true*/) const;
diff --git a/src/common/Configuration/Config.h b/src/common/Configuration/Config.h
index db7410e05e..c7708290e7 100644
--- a/src/common/Configuration/Config.h
+++ b/src/common/Configuration/Config.h
@@ -50,26 +50,6 @@ public:
template<class T>
T GetOption(std::string const& name, T const& def, bool showLogs = true) const;
- /*
- * Deprecated geters. This geters will be deleted
- */
-
- [[deprecated("Use GetOption<std::string> instead")]]
- std::string GetStringDefault(std::string const& name, const std::string& def, bool showLogs = true);
-
- [[deprecated("Use GetOption<bool> instead")]]
- bool GetBoolDefault(std::string const& name, bool def, bool showLogs = true);
-
- [[deprecated("Use GetOption<int32> instead")]]
- int GetIntDefault(std::string const& name, int def, bool showLogs = true);
-
- [[deprecated("Use GetOption<float> instead")]]
- float GetFloatDefault(std::string const& name, float def, bool showLogs = true);
-
- /*
- * End deprecated geters
- */
-
bool isDryRun() { return dryRun; }
void setDryRun(bool mode) { dryRun = mode; }