summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-05 15:42:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-05 15:42:51 +0300
commit3aaf10f021303dd67a2c36bf23f380348b5bdf02 (patch)
tree1464a1bb892b4ac5d00c40f88db6a12c85a8898a
parent545017e651250e14656a8ab21c3ab36b8b2fa760 (diff)
downloadplus-3aaf10f021303dd67a2c36bf23f380348b5bdf02.tar.gz
plus-3aaf10f021303dd67a2c36bf23f380348b5bdf02.tar.bz2
plus-3aaf10f021303dd67a2c36bf23f380348b5bdf02.tar.xz
plus-3aaf10f021303dd67a2c36bf23f380348b5bdf02.zip
Remove unused function from LocalPlayer.
-rw-r--r--src/being/localplayer.cpp10
-rw-r--r--src/being/localplayer.h4
2 files changed, 0 insertions, 14 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index e81daf267..55859ae69 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -3251,16 +3251,6 @@ bool LocalPlayer::checAttackPermissions(const Being *const target) const
}
}
-
-const char *LocalPlayer::getVarItem(const char *const *const arr,
- const unsigned index,
- const unsigned sz)
-{
- if (index < sz)
- return arr[index];
- return arr[sz];
-}
-
void LocalPlayer::updateStatus() const
{
if (serverVersion >= 4 && mEnableAdvert)
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 341b9f8b0..c27b04f47 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -420,10 +420,6 @@ class LocalPlayer final : public Being,
static void tryMagic(const std::string &spell, const int baseMagic,
const int schoolMagic, const int mana);
- static const char *getVarItem(const char *const *const arr,
- const unsigned index,
- const unsigned sz) A_WARN_UNUSED;
-
void crazyMove1();
void crazyMove2();
void crazyMove3();