summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/store.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-06-20 01:16:18 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-06-20 20:27:50 +0200
commitf1f190d3e3f4a100d95ebc843b0d9bc024f0adb7 (patch)
tree1785953a4174a106f1df2124b1774e8b03229733 /crawl-ref/source/store.h
parentf4f8547af102c4e3456d969f4374eaf548182d71 (diff)
downloadcrawl-ref-f1f190d3e3f4a100d95ebc843b0d9bc024f0adb7.tar.gz
crawl-ref-f1f190d3e3f4a100d95ebc843b0d9bc024f0adb7.zip
Remove CrawlTableWrapper, unused since times long ago.
Diffstat (limited to 'crawl-ref/source/store.h')
-rw-r--r--crawl-ref/source/store.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/crawl-ref/source/store.h b/crawl-ref/source/store.h
index 4e7e3ea923..d5f6326b93 100644
--- a/crawl-ref/source/store.h
+++ b/crawl-ref/source/store.h
@@ -389,39 +389,4 @@ public:
iterator begin();
iterator end();
};
-
-// A wrapper for non-heterogeneous hash tables, so that the values can
-// be accessed without using get_foo(). T needs to have both normal
-// and const type-cast operators defined by CrawlStoreValue for this
-// template to work.
-template <typename T, store_val_type TYPE>
-class CrawlTableWrapper
-{
-public:
- CrawlTableWrapper();
- CrawlTableWrapper(CrawlHashTable& table);
- CrawlTableWrapper(CrawlHashTable* table);
-
-protected:
- CrawlHashTable* table;
-
-public:
- void wrap(CrawlHashTable& table);
- void wrap(CrawlHashTable* table);
-
- const CrawlHashTable* get_table() const;
- const T operator[] (const std::string &key) const;
-
- CrawlHashTable* get_table();
- T& operator[] (const std::string &key);
-};
-
-typedef CrawlTableWrapper<bool, SV_BOOL> CrawlBoolTable;
-typedef CrawlTableWrapper<char, SV_BYTE> CrawlByteTable;
-typedef CrawlTableWrapper<short, SV_SHORT> CrawlShortTable;
-typedef CrawlTableWrapper<long, SV_LONG> CrawlLongTable;
-typedef CrawlTableWrapper<float, SV_FLOAT> CrawlFloatTable;
-typedef CrawlTableWrapper<std::string, SV_STR> CrawlStringTable;
-typedef CrawlTableWrapper<coord_def, SV_COORD> CrawlCoordTable;
-
#endif