diff options
author | glx <glx@openttd.org> | 2019-12-17 22:24:26 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-12-21 20:13:03 +0100 |
commit | ae532008ff3bc4195989e5c0ab2a9733473360ac (patch) | |
tree | 35288b17309b7e95403ba695c9a20396f4ce6696 | |
parent | ee7a8eebca774666cd3625431a86dd05113b5e88 (diff) | |
download | openttd-ae532008ff3bc4195989e5c0ab2a9733473360ac.tar.xz |
Cleanup: remove FOR_ALL_ITEMS
-rw-r--r-- | src/core/pool_type.hpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/pool_type.hpp b/src/core/pool_type.hpp index 565f1500e..0dba9a0b4 100644 --- a/src/core/pool_type.hpp +++ b/src/core/pool_type.hpp @@ -363,10 +363,4 @@ private: void FreeItem(size_t index); }; -#define FOR_ALL_ITEMS_FROM(type, iter, var, start) \ - for (size_t iter = start; var = nullptr, iter < type::GetPoolSize(); iter++) \ - if ((var = type::Get(iter)) != nullptr) - -#define FOR_ALL_ITEMS(type, iter, var) FOR_ALL_ITEMS_FROM(type, iter, var, 0) - #endif /* POOL_TYPE_HPP */ |