mirror of
https://github.com/ppy/osu.git
synced 2026-05-29 03:19:54 +08:00
Trim unnecessary array copy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user