group: drop deprecated member sort_as
This commit is contained in:
@@ -656,14 +656,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @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;
|
||||
};
|
||||
|
||||
@@ -320,7 +320,8 @@ TEST(NonOwningGroup, SortAsAPool) {
|
||||
}
|
||||
|
||||
registry.sort<unsigned int>(std::less<unsigned int>{});
|
||||
group.sort_as(*group.storage<unsigned int>()); // NOLINT
|
||||
const entt::sparse_set &other = *group.storage<unsigned int>();
|
||||
group.sort_as(other.begin(), other.end());
|
||||
|
||||
ASSERT_EQ((group.get<const int, unsigned int>(e0)), (std::make_tuple(0, 0u)));
|
||||
ASSERT_EQ((group.get<0, 1>(e1)), (std::make_tuple(1, 1u)));
|
||||
|
||||
Reference in New Issue
Block a user