summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/itemshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-11 20:08:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-11 20:08:01 +0300
commitbc19569a8ae96ade6669d12502219800d5bbc1f1 (patch)
tree330cce29126a3501671597bc65ad980a465a3de7 /src/gui/shortcut/itemshortcut.cpp
parent4808eeb101fda08e9cea5d0eff1e2387db9f1270 (diff)
downloadmanaverse-bc19569a8ae96ade6669d12502219800d5bbc1f1.tar.gz
manaverse-bc19569a8ae96ade6669d12502219800d5bbc1f1.tar.bz2
manaverse-bc19569a8ae96ade6669d12502219800d5bbc1f1.tar.xz
manaverse-bc19569a8ae96ade6669d12502219800d5bbc1f1.zip
Remove support for legacy configuration in ItemShortcut.
Diffstat (limited to 'src/gui/shortcut/itemshortcut.cpp')
-rw-r--r--src/gui/shortcut/itemshortcut.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp
index 2fb10a3d4..1b27a08a9 100644
--- a/src/gui/shortcut/itemshortcut.cpp
+++ b/src/gui/shortcut/itemshortcut.cpp
@@ -57,16 +57,12 @@ ItemShortcut::~ItemShortcut()
logger->log1("ItemShortcut::~ItemShortcut");
}
-void ItemShortcut::load(const bool oldConfig)
+void ItemShortcut::load()
{
std::string name;
std::string color;
std::string data;
- const Configuration *cfg;
- if (oldConfig)
- cfg = &config;
- else
- cfg = &serverConfig;
+ const Configuration *cfg = &serverConfig;
if (mNumber)
{