summaryrefslogtreecommitdiff
path: root/src/depot_base.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-17 01:00:56 +0000
committersmatz <smatz@openttd.org>2009-05-17 01:00:56 +0000
commit871107f52952ee59c353feab933126ed206e60bf (patch)
tree482884dfedc1700bddb8812f1de755212ed8bb22 /src/depot_base.h
parented1e54bd84074412ea9f273b7cd86aed42d844ce (diff)
downloadopenttd-871107f52952ee59c353feab933126ed206e60bf.tar.xz
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
Diffstat (limited to 'src/depot_base.h')
-rw-r--r--src/depot_base.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/depot_base.h b/src/depot_base.h
index 0e1c39163..b22b7e50f 100644
--- a/src/depot_base.h
+++ b/src/depot_base.h
@@ -22,11 +22,6 @@ struct Depot : PoolItem<Depot, DepotID, &_Depot_pool> {
inline bool IsValid() const { return this->xy != INVALID_TILE; }
};
-static inline bool IsValidDepotID(DepotID index)
-{
- return index < Depot::GetPoolSize() && Depot::Get(index)->IsValid();
-}
-
Depot *GetDepotByTile(TileIndex tile);
#define FOR_ALL_DEPOTS_FROM(d, start) for (d = Depot::Get(start); d != NULL; d = (d->index + 1U < Depot::GetPoolSize()) ? Depot::Get(d->index + 1U) : NULL) if (d->IsValid())