mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09: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)
|
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);
|
availableTargets.FirstOrDefault(t => t.Components.Contains(item))?.Remove(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user