1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:13:21 +08:00

Remove unnecessary XMLDoc comment and remove unecessary implicit null parm

This commit is contained in:
Lucas A 2020-09-27 09:25:01 +02:00
parent c5cf0d0410
commit 84cc6068f5

View File

@ -121,7 +121,6 @@ namespace osu.Game.Beatmaps
/// <param name="beatmap">The <see cref="WorkingBeatmap"/> to do the calculation on. </param>
/// <param name="score">The score to do the calculation on. </param>
/// <param name="token">An optional <see cref="CancellationToken"/> to cancel the operation.</param>
/// <returns></returns>
public async Task<double> CalculatePerformance([NotNull] WorkingBeatmap beatmap, [NotNull] ScoreInfo score, CancellationToken token = default)
{
return await Task.Factory.StartNew(() =>
@ -130,7 +129,7 @@ namespace osu.Game.Beatmaps
return default;
var calculator = score.Ruleset.CreateInstance().CreatePerformanceCalculator(beatmap, score);
var total = calculator.Calculate(null);
var total = calculator.Calculate();
return total;
}, token, TaskCreationOptions.HideScheduler | TaskCreationOptions.RunContinuationsAsynchronously, updateScheduler);