From 871107f52952ee59c353feab933126ed206e60bf Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 17 May 2009 01:00:56 +0000 Subject: (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) --- src/waypoint.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/waypoint.h') diff --git a/src/waypoint.h b/src/waypoint.h index fe80b2ba9..eedef025b 100644 --- a/src/waypoint.h +++ b/src/waypoint.h @@ -40,11 +40,6 @@ struct Waypoint : PoolItem { inline bool IsValid() const { return this->xy != INVALID_TILE; } }; -static inline bool IsValidWaypointID(WaypointID index) -{ - return index < Waypoint::GetPoolSize() && Waypoint::Get(index)->IsValid(); -} - #define FOR_ALL_WAYPOINTS_FROM(wp, start) for (wp = Waypoint::Get(start); wp != NULL; wp = (wp->index + 1U < Waypoint::GetPoolSize()) ? Waypoint::Get(wp->index + 1U) : NULL) if (wp->IsValid()) #define FOR_ALL_WAYPOINTS(wp) FOR_ALL_WAYPOINTS_FROM(wp, 0) -- cgit v1.2.3-54-g00ecf