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 | |
parent | 447d96259ec1b6be3fddad3e5b61b3711030ea18 (diff) | |
download | plus-833ee2d763001667f5818a1922f5e96d60890cd9.tar.gz plus-833ee2d763001667f5818a1922f5e96d60890cd9.tar.bz2 plus-833ee2d763001667f5818a1922f5e96d60890cd9.tar.xz plus-833ee2d763001667f5818a1922f5e96d60890cd9.zip |
Remove unused function changeMode from localplayer.
Diffstat (limited to 'src')
-rw-r--r-- | src/being/localplayer.cpp | 33 | ||||
-rw-r--r-- | src/being/localplayer.h | 8 |
2 files changed, 0 insertions, 41 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()) diff --git a/src/being/localplayer.h b/src/being/localplayer.h index e26cb7843..c01032e8e 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -426,14 +426,6 @@ class LocalPlayer final : public Being, const unsigned index, const unsigned sz) A_WARN_UNUSED; - void 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); - void crazyMove1(); void crazyMove2(); void crazyMove3(); |