mirror of
https://github.com/ppy/osu
synced 2025-03-06 11:28:12 +00:00
Trim yet another array copy
This commit is contained in:
parent
1e56d2cbba
commit
7e17c5ab71
@ -153,12 +153,8 @@ namespace osu.Game.Configuration
|
||||
}
|
||||
|
||||
public static ICollection<(SettingSourceAttribute, PropertyInfo)> GetOrderedSettingsSourceProperties(this object obj)
|
||||
{
|
||||
var original = obj.GetSettingsSourceProperties().ToArray();
|
||||
|
||||
return original
|
||||
.OrderBy(attr => attr.Item1)
|
||||
.ToArray();
|
||||
}
|
||||
=> obj.GetSettingsSourceProperties()
|
||||
.OrderBy(attr => attr.Item1)
|
||||
.ToArray();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user