diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-12-10 05:32:19 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-12-10 17:48:48 +0100 |
commit | 44efaac9094d00ba10424f30f27f9e1dd5f0a93e (patch) | |
tree | d775f17a82a34d840d2d4ff17612aea5114947ab /crawl-ref/source/items.h | |
parent | e3f8c6adc96be8246a1da3aa9955b30c2b1d5c78 (diff) | |
download | crawl-ref-44efaac9094d00ba10424f30f27f9e1dd5f0a93e.tar.gz crawl-ref-44efaac9094d00ba10424f30f27f9e1dd5f0a93e.zip |
Massively speed up reading .des files.
A majority of time was spent parsing item names by repeatedly generating all
possible items and comparing their names. We already have an item name cache.
Diffstat (limited to 'crawl-ref/source/items.h')
-rw-r--r-- | crawl-ref/source/items.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crawl-ref/source/items.h b/crawl-ref/source/items.h index b45755dddf..b15c8104a3 100644 --- a/crawl-ref/source/items.h +++ b/crawl-ref/source/items.h @@ -50,7 +50,6 @@ bool items_stack(const item_def &item1, const item_def &item2, void merge_item_stacks(item_def &source, item_def &dest, int quant = -1); -item_def find_item_type(std::string name); item_def *find_floor_item(object_class_type cls, int sub_type); int item_on_floor(const item_def &item, const coord_def& where); |