summaryrefslogtreecommitdiff
path: root/src/signs_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-17 11:18:34 +0000
committerrubidium <rubidium@openttd.org>2009-05-17 11:18:34 +0000
commit88201ccd5cd1cc6a5def1ecc9e42291399cd3c37 (patch)
tree70959c2ccb22d7bee88ffc1f117dfb2877f58fbe /src/signs_base.h
parente7dedf4e1b2569a3f595f045a61d3d4bc144f3de (diff)
downloadopenttd-88201ccd5cd1cc6a5def1ecc9e42291399cd3c37.tar.xz
(svn r16333) -Cleanup: remove a bunch of unused wrapper functions.
Diffstat (limited to 'src/signs_base.h')
-rw-r--r--src/signs_base.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/signs_base.h b/src/signs_base.h
index 0170b0a9a..dd8d13bf0 100644
--- a/src/signs_base.h
+++ b/src/signs_base.h
@@ -31,16 +31,6 @@ struct Sign : PoolItem<Sign, SignID, &_Sign_pool> {
inline bool IsValid() const { return this->owner != INVALID_OWNER; }
};
-static inline SignID GetMaxSignIndex()
-{
- /* TODO - This isn't the real content of the function, but
- * with the new pool-system this will be replaced with one that
- * _really_ returns the highest index. Now it just returns
- * the next safe value we are sure about everything is below.
- */
- return Sign::GetPoolSize() - 1;
-}
-
#define FOR_ALL_SIGNS_FROM(ss, start) for (ss = Sign::Get(start); ss != NULL; ss = (ss->index + 1U < Sign::GetPoolSize()) ? Sign::Get(ss->index + 1U) : NULL) if (ss->IsValid())
#define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)