From b490d5ceab37afead2e22fbbef71b9ed71d9adc7 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 21 Sep 2012 20:31:42 +0000 Subject: (svn r24541) -Cleanup [FS#5260]: remove unused function GetGroupArraySize (juanjo) --- src/group.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf