summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills.cc
diff options
context:
space:
mode:
authorBrendan Hickey <brendan@bhickey.net>2014-05-11 04:26:50 +0000
committerBrendan Hickey <brendan@bhickey.net>2014-05-11 04:30:09 +0000
commitad85dd94b9d1dd64c29c88e8a5a8c8ca6de3db8a (patch)
tree04ef59ed825fe59da47e0dd21d06fb24e3555f46 /crawl-ref/source/skills.cc
parent9ddeec1304bd9ceb6d1b57c49a052231b69db7e6 (diff)
downloadcrawl-ref-ad85dd94b9d1dd64c29c88e8a5a8c8ca6de3db8a.tar.gz
crawl-ref-ad85dd94b9d1dd64c29c88e8a5a8c8ca6de3db8a.zip
Remove dead code
Delete train_skill, an unused function.
Diffstat (limited to 'crawl-ref/source/skills.cc')
-rw-r--r--crawl-ref/source/skills.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/crawl-ref/source/skills.cc b/crawl-ref/source/skills.cc
index 8f25693506..54ba37d005 100644
--- a/crawl-ref/source/skills.cc
+++ b/crawl-ref/source/skills.cc
@@ -888,17 +888,6 @@ bool skill_trained(int i)
return you.can_train[i] && you.train[i];
}
-void train_skill(skill_type skill, int exp)
-{
- const int cost = calc_skill_cost(you.skill_cost_level);
- int gain = 0;
-
- while (exp >= cost)
- gain += _train(skill, exp);
-
- dprf("Trained %s by %d.", skill_name(skill), gain);
-}
-
void check_skill_cost_change()
{
while (you.skill_cost_level < 27