From e828864ca8c75a3ebb89beaff9df0e97a07bfb1d Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sat, 10 Jun 2023 00:55:00 +0800 Subject: [PATCH] remove EcsGroup.Release --- src/EcsGroup.cs | 8 ++------ src/Executors/EcsWhereExecutor.cs | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/EcsGroup.cs b/src/EcsGroup.cs index 60d1a02..85129ca 100644 --- a/src/EcsGroup.cs +++ b/src/EcsGroup.cs @@ -157,7 +157,7 @@ namespace DCFApixels.DragonECS } #endregion - #region Constrcutors + #region Constrcutors/Dispose [MethodImpl(MethodImplOptions.AggressiveInlining)] public static EcsGroup New(EcsWorld world) { @@ -172,6 +172,7 @@ namespace DCFApixels.DragonECS _count = 0; } + public void Dispose() => _source.ReleaseGroup(this); #endregion #region Has/IndexOf @@ -517,11 +518,6 @@ namespace DCFApixels.DragonECS } #endregion - #region IDisposable/Release - public void Dispose() => Release(); - public void Release() => _source.ReleaseGroup(this); - #endregion - #region ThrowHalper #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS internal static class ThrowHelper diff --git a/src/Executors/EcsWhereExecutor.cs b/src/Executors/EcsWhereExecutor.cs index df9efb7..73c0b7a 100644 --- a/src/Executors/EcsWhereExecutor.cs +++ b/src/Executors/EcsWhereExecutor.cs @@ -24,7 +24,7 @@ } protected sealed override void OnDestroy() { - _filteredGroup.Release(); + _filteredGroup.Dispose(); } #endregion