diff options
author | smatz <smatz@openttd.org> | 2009-05-17 01:00:56 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-17 01:00:56 +0000 |
commit | 871107f52952ee59c353feab933126ed206e60bf (patch) | |
tree | 482884dfedc1700bddb8812f1de755212ed8bb22 /src/signs_base.h | |
parent | ed1e54bd84074412ea9f273b7cd86aed42d844ce (diff) | |
download | openttd-871107f52952ee59c353feab933126ed206e60bf.tar.xz |
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
Diffstat (limited to 'src/signs_base.h')
-rw-r--r-- | src/signs_base.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/signs_base.h b/src/signs_base.h index 88e57d330..0170b0a9a 100644 --- a/src/signs_base.h +++ b/src/signs_base.h @@ -41,11 +41,6 @@ static inline SignID GetMaxSignIndex() return Sign::GetPoolSize() - 1; } -static inline bool IsValidSignID(uint index) -{ - return index < Sign::GetPoolSize() && Sign::Get(index)->IsValid(); -} - #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) |