summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-02-11 18:37:13 +0000
committerpeter1138 <peter1138@openttd.org>2009-02-11 18:37:13 +0000
commitf2e1a315c1aa723360fb12c149aa658b19617cbc (patch)
tree42831bb59d72cdeb540bc920b5115b80751a7c60 /src
parentf9feb4a0e6e543af45c42001fb5fee394e3dc3f6 (diff)
downloadopenttd-f2e1a315c1aa723360fb12c149aa658b19617cbc.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.h6
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 */