summaryrefslogtreecommitdiff
path: root/src/depot_base.h
diff options
context:
space:
mode:
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())