summaryrefslogtreecommitdiff
path: root/src/group.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-09-21 20:31:42 +0000
committeryexo <yexo@openttd.org>2012-09-21 20:31:42 +0000
commitb490d5ceab37afead2e22fbbef71b9ed71d9adc7 (patch)
tree80fbd220afbd58753a3e0590bdd7a4b00dc2e25f /src/group.h
parent5add39d560aa28e95a7a4f84036ef5b1dd2e2e6b (diff)
downloadopenttd-b490d5ceab37afead2e22fbbef71b9ed71d9adc7.tar.xz
(svn r24541) -Cleanup [FS#5260]: remove unused function GetGroupArraySize (juanjo)
Diffstat (limited to 'src/group.h')
-rw-r--r--src/group.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/group.h b/src/group.h
index 7672f3862..d8680c294 100644
--- a/src/group.h
+++ b/src/group.h
@@ -94,18 +94,6 @@ static inline bool IsAllGroupID(GroupID id_g)
#define FOR_ALL_GROUPS_FROM(var, start) FOR_ALL_ITEMS_FROM(Group, group_index, var, start)
#define FOR_ALL_GROUPS(var) FOR_ALL_GROUPS_FROM(var, 0)
-/**
- * Get the current size of the GroupPool
- */
-static inline uint GetGroupArraySize()
-{
- const Group *g;
- uint num = 0;
-
- FOR_ALL_GROUPS(g) num++;
-
- return num;
-}
uint GetGroupNumEngines(CompanyID company, GroupID id_g, EngineID id_e);