summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/being/localplayer.cpp33
-rw-r--r--src/being/localplayer.h8
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();