Mercurial > hg > openttd
changeset 7104:523d17ca8618 draft
(svn r10371) -Fix (r9874): Remove never-used GetGroupName() function
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 28 Jun 2007 11:53:22 +0000 |
parents | 960e94818e5f |
children | ea1eb5b8a477 |
files | src/group.h |
diffstat | 1 files changed, 0 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/group.h +++ b/src/group.h @@ -53,14 +53,6 @@ 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)