summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 04:43:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 04:49:47 +0300
commit2bd61993e4b8cb190fbbbcf620f4901636404d48 (patch)
treeb27fdfaebb4bfdc7f85d29224ba2f22cb00305e1
parent1be5a1cd679a5476e1ad3339c01a8b7237b84aec (diff)
downloadmv-2bd61993e4b8cb190fbbbcf620f4901636404d48.tar.gz
mv-2bd61993e4b8cb190fbbbcf620f4901636404d48.tar.bz2
mv-2bd61993e4b8cb190fbbbcf620f4901636404d48.tar.xz
mv-2bd61993e4b8cb190fbbbcf620f4901636404d48.zip
Remove unused functions from playerinfo.cpp
-rw-r--r--src/being/playerinfo.cpp15
-rw-r--r--src/being/playerinfo.h13
2 files changed, 0 insertions, 28 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index 0a89bd7e1..d56934d31 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -187,21 +187,6 @@ const std::pair<int, int> getStatExperience(const AttributesT id)
return std::pair<int, int>(a, b);
}
-void setStatExperience(const AttributesT id,
- const int have,
- const int need,
- const Notify notify)
-{
- Stat &stat = mData.mStats[id];
-
- const int oldExp = stat.exp;
- const int oldExpNeed = stat.expNeed;
- stat.exp = have;
- stat.expNeed = need;
- if (notify == Notify_true)
- triggerStat(id, oldExp, oldExpNeed);
-}
-
// --- Inventory / Equipment --------------------------------------------------
Inventory *getInventory()
diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h
index 12cba8f18..2f8a2e1e9 100644
--- a/src/being/playerinfo.h
+++ b/src/being/playerinfo.h
@@ -142,24 +142,11 @@ namespace PlayerInfo
int getStatEffective(const AttributesT id) A_WARN_UNUSED;
/**
- * Changes the level of the given stat.
- */
- void setStatLevel(AttributesT id, int value, Notify notify = Notify_true);
-
- /**
* Returns the experience of the given stat.
*/
const std::pair<int, int> getStatExperience(const AttributesT id)
A_WARN_UNUSED;
- /**
- * Changes the experience of the given stat.
- */
- void setStatExperience(const AttributesT id,
- const int have,
- const int need,
- const Notify notify = Notify_true);
-
// --- Inventory / Equipment --------------------------------------------------
/**