summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-06-28 11:53:22 +0000
committerpeter1138 <peter1138@openttd.org>2007-06-28 11:53:22 +0000
commit5a6f7a79a3975cae0937dc2cd2ea07974b1ebd95 (patch)
tree55c9621c6646738fab5cafe946db0ac5a6a4f3e9
parent819321676a14d2f6ff5c3f49375c5bd99c90dd0a (diff)
downloadopenttd-5a6f7a79a3975cae0937dc2cd2ea07974b1ebd95.tar.xz
(svn r10371) -Fix (r9874): Remove never-used GetGroupName() function
-rw-r--r--src/group.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/group.h b/src/group.h
index f68306293..8c6667220 100644
--- a/src/group.h
+++ b/src/group.h
@@ -53,14 +53,6 @@ static inline bool IsDefaultGroupID(GroupID index)
return (index == DEFAULT_GROUP);
}
-static inline StringID GetGroupName(GroupID index)
-{
- if (!IsValidGroupID(index)) return STR_NULL;
-
- return GetGroup(index)->string_id;
-}
-
-
#define FOR_ALL_GROUPS_FROM(g, start) for (g = GetGroup(start); g != NULL; g = (g->index + 1U < GetGroupPoolSize()) ? GetGroup(g->index + 1) : NULL) if (IsValidGroup(g))
#define FOR_ALL_GROUPS(g) FOR_ALL_GROUPS_FROM(g, 0)