diff --git a/src/openrct2/core/Collections.hpp b/src/openrct2/core/Collections.hpp index 2fc851ae0b..4c0710bb81 100644 --- a/src/openrct2/core/Collections.hpp +++ b/src/openrct2/core/Collections.hpp @@ -9,7 +9,6 @@ #pragma once -#include "Memory.hpp" #include "String.hpp" #include @@ -78,23 +77,5 @@ namespace OpenRCT2::Collections collection, item, [ignoreCase](const char* a, const char* b) { return String::Equals(a, b, ignoreCase); }); } - template static typename TCollection::value_type* ToArray(const TCollection& collection) - { - size_t count = collection.size(); - if (count == 0) - { - return nullptr; - } - - auto* items = Memory::AllocateArray(count); - size_t i = 0; - for (const auto& item : collection) - { - items[i] = item; - i++; - } - return items; - } - #pragma endregion } // namespace OpenRCT2::Collections