From ae532008ff3bc4195989e5c0ab2a9733473360ac Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 17 Dec 2019 22:24:26 +0100 Subject: Cleanup: remove FOR_ALL_ITEMS --- src/core/pool_type.hpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/core') 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 */ -- cgit v1.2.3-70-g09d2