From 93c058951ccd1d585d651d34f57645c82a08efe7 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 16 Nov 2023 15:38:28 -0800 Subject: [PATCH] commit indexable set change --- src/Collections/IndexableSet.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Collections/IndexableSet.cs b/src/Collections/IndexableSet.cs index 6eaee89..418749f 100644 --- a/src/Collections/IndexableSet.cs +++ b/src/Collections/IndexableSet.cs @@ -61,19 +61,6 @@ namespace MoonTools.ECS.Collections return false; } - /* - var index = indices[element]; - - if (index != Count - 1) - { - var lastElement = array[Count - 1]; - array[index] = lastElement; - indices[lastElement] = index; - } - count -= 1; - indices.Remove(element); - */ - var index = indices[element]; for (var i = index; i < Count - 1; i += 1)