From bbc86b94fbe27e2ed4c05e7c2ac42037338e961e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 Sep 2016 20:04:10 +0300 Subject: Remove support for legacy configuration in SpellManager. --- src/spellmanager.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/spellmanager.cpp') diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index 79ec80a40..2020dae11 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -250,13 +250,9 @@ TextCommand *SpellManager::createNewSpell() const return new TextCommand(CAST_U32(mSpellsVector.size())); } -void SpellManager::load(const bool oldConfig) +void SpellManager::load() { - const Configuration *cfg; - if (oldConfig) - cfg = &config; - else - cfg = &serverConfig; + const Configuration *cfg = &serverConfig; delete_all(mSpells); mSpells.clear(); -- cgit v1.2.3-60-g2f50