summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-23 12:14:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-23 12:14:44 +0300
commit833ee2d763001667f5818a1922f5e96d60890cd9 (patch)
tree2bd04c17b989f2747cad3ea0a42c882f5fb7ff31 /src/being/localplayer.cpp
parent447d96259ec1b6be3fddad3e5b61b3711030ea18 (diff)
downloadplus-833ee2d763001667f5818a1922f5e96d60890cd9.tar.gz
plus-833ee2d763001667f5818a1922f5e96d60890cd9.tar.bz2
plus-833ee2d763001667f5818a1922f5e96d60890cd9.tar.xz
plus-833ee2d763001667f5818a1922f5e96d60890cd9.zip
Remove unused function changeMode from localplayer.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp33
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())