1
0
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:
Dean Herbert 2020-07-18 12:06:41 +09:00
parent 2f16b448ea
commit 7250bc351d

View File

@ -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;
}