diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-23 12:14:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-23 12:14:44 +0300 |
commit | 833ee2d763001667f5818a1922f5e96d60890cd9 (patch) | |
tree | 2bd04c17b989f2747cad3ea0a42c882f5fb7ff31 /src/being/localplayer.cpp | |
parent | 447d96259ec1b6be3fddad3e5b61b3711030ea18 (diff) | |
download | manaverse-833ee2d763001667f5818a1922f5e96d60890cd9.tar.gz manaverse-833ee2d763001667f5818a1922f5e96d60890cd9.tar.bz2 manaverse-833ee2d763001667f5818a1922f5e96d60890cd9.tar.xz manaverse-833ee2d763001667f5818a1922f5e96d60890cd9.zip |
Remove unused function changeMode from localplayer.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index ee7ced8c5..07447601e 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -1221,39 +1221,6 @@ void LocalPlayer::moveToHome() } } -void LocalPlayer::changeMode(unsigned *restrict const var, - const unsigned limit, - const char *restrict const conf, - std::string (LocalPlayer::*const func)(), - const unsigned def, - const bool save, - const bool forward) -{ - if (!var) - return; - - if (forward) - { - (*var) ++; - if (*var >= limit) - *var = def; - } - else - { - if (!*var) - *var = limit - 1; - else - (*var) --; - } - - if (save) - config.setValue(conf, *var); - UpdateStatusListener::distributeEvent(); - const std::string str = (this->*func)(); - if (str.size() > 4) - debugMsg(str.substr(4)); -} - void LocalPlayer::changeEquipmentBeforeAttack(const Being *const target) const { if (settings.attackWeaponType == 1 || !target || !PlayerInfo::getInventory()) |