Make HitObjectContainer.Clear non-virtual

It just call `Remove` for all entries.
This commit is contained in:
ekrctb
2021-05-31 23:01:54 +09:00
parent 2c9e5b6c7e
commit 0ce7baa3f3
2 changed files with 2 additions and 8 deletions

View File

@ -145,10 +145,11 @@ namespace osu.Game.Rulesets.Objects.Pooling
/// <summary>
/// Remove all <typeparamref name="TEntry"/>s.
/// </summary>
public virtual void Clear()
public void Clear()
{
foreach (var entry in Entries.ToArray())
Remove(entry);
Debug.Assert(aliveDrawableMap.Count == 0);
}