sparse_set: drop deprecated member sort_as
This commit is contained in:
@@ -1065,14 +1065,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @copybrief sort_as
|
||||
* @param other The sparse sets that imposes the order of the entities.
|
||||
*/
|
||||
[[deprecated("use iterator based sort_as instead")]] void sort_as(const basic_sparse_set &other) {
|
||||
sort_as(other.begin(), other.end());
|
||||
}
|
||||
|
||||
/*! @brief Clears a sparse set. */
|
||||
void clear() {
|
||||
pop_all();
|
||||
|
||||
@@ -1910,7 +1910,7 @@ TYPED_TEST(SparseSet, SortAsOrdered) {
|
||||
ASSERT_TRUE(std::equal(lhs_entity.rbegin(), lhs_entity.rend(), lhs.begin(), lhs.end()));
|
||||
ASSERT_TRUE(std::equal(rhs_entity.rbegin(), rhs_entity.rend(), rhs.begin(), rhs.end()));
|
||||
|
||||
rhs.sort_as(lhs); // NOLINT
|
||||
rhs.sort_as(lhs.begin(), lhs.end());
|
||||
|
||||
ASSERT_TRUE(std::equal(rhs_entity.rbegin(), rhs_entity.rend(), rhs.begin(), rhs.end()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user