summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-20 14:59:06 -0400
committerNeil Moore <neil@s-z.org>2014-07-20 15:00:55 -0400
commitc471ff7bd47c870ef79b61c53c1cebdd7e7aa3ba (patch)
tree03aa7134aa7781337f41ada40a4a0769be072397
parente4e15622d6dc5ef54af4f73848613013e2393a3b (diff)
downloadcrawl-ref-c471ff7bd47c870ef79b61c53c1cebdd7e7aa3ba.tar.gz
crawl-ref-c471ff7bd47c870ef79b61c53c1cebdd7e7aa3ba.zip
Remove an unused parameter.
-rw-r--r--crawl-ref/source/itemname.cc6
-rw-r--r--crawl-ref/source/itemname.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 0158b9e0c5..f83b372cb1 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -1130,12 +1130,12 @@ static const char* rod_type_name(int type)
}
}
-string base_type_string(const item_def &item, bool known)
+string base_type_string(const item_def &item)
{
- return base_type_string(item.base_type, known);
+ return base_type_string(item.base_type);
}
-string base_type_string(object_class_type type, bool known)
+string base_type_string(object_class_type type)
{
switch (type)
{
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h
index a8446789a3..06cf4fb136 100644
--- a/crawl-ref/source/itemname.h
+++ b/crawl-ref/source/itemname.h
@@ -137,8 +137,8 @@ const char* rune_type_name(int p);
bool is_named_corpse(const item_def &corpse);
string get_corpse_name(const item_def &corpse, uint64_t *name_type = NULL);
const char* deck_rarity_name(deck_rarity_type rarity);
-string base_type_string(object_class_type type, bool known = true);
-string base_type_string(const item_def &item, bool known = true);
+string base_type_string(object_class_type type);
+string base_type_string(const item_def &item);
string sub_type_string(const item_def &item, bool known = true);