Explorar o código

sparse_set: drop force_back check for swap_only policy

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
ba116ba949
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      src/entt/entity/sparse_set.hpp

+ 0 - 3
src/entt/entity/sparse_set.hpp

@@ -358,11 +358,8 @@ protected:
                 bump(entt);
             }
 
-            if(force_back) {
                 pos = static_cast<size_type>(head++);
                 swap_at(static_cast<size_type>(traits_type::to_entity(elem)), pos);
-            }
-
             break;
         }