From 406ba3cb7da42994a07b9f792d80646c9e2dece7 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 22 Jan 2024 16:51:44 +0100 Subject: [PATCH] group: drop deprecated member sort_as --- src/entt/entity/group.hpp | 8 -------- test/entt/entity/group.cpp | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index d4b82c8a40..af5f0c8c39 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -656,14 +656,6 @@ class basic_group, get_t, exclude_t> { } } - /** - * @brief Sort entities according to their order in a range. - * @param other The storage to use to impose the order. - */ - [[deprecated("use iterator based sort_as instead")]] void sort_as(const common_type &other) const { - sort_as(other.begin(), other.end()); - } - private: handler *descriptor; }; diff --git a/test/entt/entity/group.cpp b/test/entt/entity/group.cpp index e9f6416ee0..5aa014eccd 100644 --- a/test/entt/entity/group.cpp +++ b/test/entt/entity/group.cpp @@ -320,7 +320,8 @@ TEST(NonOwningGroup, SortAsAPool) { } registry.sort(std::less{}); - group.sort_as(*group.storage()); // NOLINT + const entt::sparse_set &other = *group.storage(); + group.sort_as(other.begin(), other.end()); ASSERT_EQ((group.get(e0)), (std::make_tuple(0, 0u))); ASSERT_EQ((group.get<0, 1>(e1)), (std::make_tuple(1, 1u)));