From 3a48d4b96317ca8e43db24c3bbf0e02e97e65a25 Mon Sep 17 00:00:00 2001 From: notgiven688 Date: Fri, 31 May 2024 17:16:03 +0200 Subject: [PATCH] Improve SlimBag class --- src/Jitter2/DataStructures/SlimBag.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Jitter2/DataStructures/SlimBag.cs b/src/Jitter2/DataStructures/SlimBag.cs index 96f5ffb0..b23fa9bc 100644 --- a/src/Jitter2/DataStructures/SlimBag.cs +++ b/src/Jitter2/DataStructures/SlimBag.cs @@ -156,9 +156,6 @@ public void Clear() /// public void NullOut() { - if(nullOut - counter > 0) - { - Array.Clear(array, counter, nullOut - counter); - } + Array.Clear(array, counter, nullOut - counter); } } \ No newline at end of file