mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 04:32:55 +08:00
Make HitObjectContainer.Clear
non-virtual
It just call `Remove` for all entries.
This commit is contained in:
parent
2c9e5b6c7e
commit
0ce7baa3f3
@ -145,10 +145,11 @@ namespace osu.Game.Rulesets.Objects.Pooling
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Remove all <typeparamref name="TEntry"/>s.
|
/// Remove all <typeparamref name="TEntry"/>s.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void Clear()
|
public void Clear()
|
||||||
{
|
{
|
||||||
foreach (var entry in Entries.ToArray())
|
foreach (var entry in Entries.ToArray())
|
||||||
Remove(entry);
|
Remove(entry);
|
||||||
|
|
||||||
Debug.Assert(aliveDrawableMap.Count == 0);
|
Debug.Assert(aliveDrawableMap.Count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,13 +45,6 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
|||||||
timeRange.ValueChanged += _ => layoutCache.Invalidate();
|
timeRange.ValueChanged += _ => layoutCache.Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Clear()
|
|
||||||
{
|
|
||||||
base.Clear();
|
|
||||||
|
|
||||||
layoutComputed.Clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Given a position in screen space, return the time within this column.
|
/// Given a position in screen space, return the time within this column.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user