mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Remove unnecessary new() specification
This commit is contained in:
parent
2f16b448ea
commit
7250bc351d
@ -173,7 +173,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
/// <param name="fallback">The control point to use when <paramref name="time"/> is before any control points.</param>
|
||||
/// <returns>The active control point at <paramref name="time"/>, or a fallback <see cref="ControlPoint"/> if none found.</returns>
|
||||
private T binarySearchWithFallback<T>(IReadOnlyList<T> list, double time, T fallback)
|
||||
where T : ControlPoint, new()
|
||||
where T : ControlPoint
|
||||
{
|
||||
return binarySearch(list, time) ?? fallback;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user