Browse Source

sparse_set: drop force_back check for swap_only policy

Michele Caini 2 năm trước cách đây
mục cha
commit
ba116ba949
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  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;
         }