diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index 2da520f2a8..0b68e6c9aa 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/src/entt/entity/sparse_set.hpp @@ -227,22 +227,6 @@ class basic_sparse_set { /*! @brief Random access iterator type. */ using basic_iterator = internal::sparse_set_iterator; - /** - * @brief Swaps two items at specific locations. - * @param lhs A position to move from. - * @param rhs The other position to move from. - */ - void swap_at(const std::size_t lhs, const std::size_t rhs) { - const auto entity = static_cast(lhs); - const auto other = static_cast(rhs); - - sparse_ref(packed[lhs]) = traits_type::combine(other, traits_type::to_integral(packed[lhs])); - sparse_ref(packed[rhs]) = traits_type::combine(entity, traits_type::to_integral(packed[rhs])); - - using std::swap; - swap(packed[lhs], packed[rhs]); - } - /** * @brief Erases an entity from a sparse set. * @param it An iterator to the element to pop.