summaryrefslogtreecommitdiff
path: root/src/order_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/order_base.h
parented1e54bd84074412ea9f273b7cd86aed42d844ce (diff)
downloadopenttd-871107f52952ee59c353feab933126ed206e60bf.tar.xz
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
Diffstat (limited to 'src/order_base.h')
-rw-r--r--src/order_base.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/order_base.h b/src/order_base.h
index 1c6566194..67edbb2c2 100644
--- a/src/order_base.h
+++ b/src/order_base.h
@@ -421,11 +421,6 @@ public:
void DebugCheckSanity() const;
};
-static inline bool IsValidOrderListID(uint index)
-{
- return index < OrderList::GetPoolSize() && OrderList::Get(index)->IsValid();
-}
-
#define FOR_ALL_ORDERS_FROM(order, start) for (order = Order::Get(start); order != NULL; order = (order->index + 1U < Order::GetPoolSize()) ? Order::Get(order->index + 1U) : NULL) if (order->IsValid())
#define FOR_ALL_ORDERS(order) FOR_ALL_ORDERS_FROM(order, 0)