diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-04-28 21:49:58 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-04-28 23:54:31 +0100 |
commit | 3b3d80c8efbf3310a80e0540b4436a7ded147378 (patch) | |
tree | 8b54f517b28ec05ecd0443f22027046ef2fb7b6e /src/rail.h | |
parent | ae7f07de74a8d242dce8a67eaece26be9d06f064 (diff) | |
download | openttd-3b3d80c8efbf3310a80e0540b4436a7ded147378.tar.xz |
Cleanup: Replace FOR_ALL_SORTED_RAILTYPES macro with range iterator.
Diffstat (limited to 'src/rail.h')
-rw-r--r-- | src/rail.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rail.h b/src/rail.h index c5775b946..a0bbb0109 100644 --- a/src/rail.h +++ b/src/rail.h @@ -464,10 +464,4 @@ RailType AllocateRailType(RailTypeLabel label); extern std::vector<RailType> _sorted_railtypes; extern RailTypes _railtypes_hidden_mask; -/** - * Loop header for iterating over railtypes, sorted by sortorder. - * @param var Railtype. - */ -#define FOR_ALL_SORTED_RAILTYPES(var) for (uint8 index = 0; index < _sorted_railtypes.size() && (var = _sorted_railtypes[index], true) ; index++) - #endif /* RAIL_H */ |