mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 14:12:55 +08:00
Trim unnecessary array copy
This commit is contained in:
parent
743b4fbff1
commit
3d3c5028e6
@ -243,7 +243,7 @@ namespace osu.Game.Skinning.Editor
|
||||
|
||||
public void DeleteItems(ISkinnableDrawable[] items)
|
||||
{
|
||||
foreach (var item in items.ToArray())
|
||||
foreach (var item in items)
|
||||
availableTargets.FirstOrDefault(t => t.Components.Contains(item))?.Remove(item);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user