diff options
author | peter1138 <peter1138@openttd.org> | 2009-02-11 18:37:13 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-02-11 18:37:13 +0000 |
commit | 15152cdc0378c0ab9850f6693c6fea6786b09823 (patch) | |
tree | 42831bb59d72cdeb540bc920b5115b80751a7c60 /src | |
parent | 3e3a158610d34c87420e450c3974bab48520254a (diff) | |
download | openttd-15152cdc0378c0ab9850f6693c6fea6786b09823.tar.xz |
(svn r15450) -Codechange: Remove unused RailTypesByte, unused RAILTYPES_... enum values, and change INVALID_RAILTYPES to be UINT_MAX.
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_type.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rail_type.h b/src/rail_type.h index e4cf3905d..e8c452492 100644 --- a/src/rail_type.h +++ b/src/rail_type.h @@ -39,12 +39,8 @@ enum RailTypes { RAILTYPES_ELECTRIC = 1 << RAILTYPE_ELECTRIC, ///< Electrified rails RAILTYPES_MONO = 1 << RAILTYPE_MONO, ///< Monorail! RAILTYPES_MAGLEV = 1 << RAILTYPE_MAGLEV, ///< Ever fast maglev - RAILTYPES_ALL = RAILTYPES_RAIL | RAILTYPES_ELECTRIC | RAILTYPES_MONO | RAILTYPES_MAGLEV, ///< All of them - RAILTYPES_END, ///< Used for iterations? - INVALID_RAILTYPES = 0xFF ///< Invalid railtypes + INVALID_RAILTYPES = UINT_MAX ///< Invalid railtypes }; DECLARE_ENUM_AS_BIT_SET(RailTypes); -template <> struct EnumPropsT<RailTypes> : MakeEnumPropsT<RailTypes, byte, RAILTYPES_NONE, RAILTYPES_END, INVALID_RAILTYPES> {}; -typedef TinyEnumT<RailTypes> RailTypesByte; #endif /* RAIL_TYPE_H */ |