mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +08:00
Remove unnecessary XMLDoc comment and remove unecessary implicit null parm
This commit is contained in:
parent
c5cf0d0410
commit
84cc6068f5
@ -121,7 +121,6 @@ namespace osu.Game.Beatmaps
|
|||||||
/// <param name="beatmap">The <see cref="WorkingBeatmap"/> to do the calculation on. </param>
|
/// <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="score">The score to do the calculation on. </param>
|
||||||
/// <param name="token">An optional <see cref="CancellationToken"/> to cancel the operation.</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)
|
public async Task<double> CalculatePerformance([NotNull] WorkingBeatmap beatmap, [NotNull] ScoreInfo score, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
return await Task.Factory.StartNew(() =>
|
return await Task.Factory.StartNew(() =>
|
||||||
@ -130,7 +129,7 @@ namespace osu.Game.Beatmaps
|
|||||||
return default;
|
return default;
|
||||||
|
|
||||||
var calculator = score.Ruleset.CreateInstance().CreatePerformanceCalculator(beatmap, score);
|
var calculator = score.Ruleset.CreateInstance().CreatePerformanceCalculator(beatmap, score);
|
||||||
var total = calculator.Calculate(null);
|
var total = calculator.Calculate();
|
||||||
|
|
||||||
return total;
|
return total;
|
||||||
}, token, TaskCreationOptions.HideScheduler | TaskCreationOptions.RunContinuationsAsynchronously, updateScheduler);
|
}, token, TaskCreationOptions.HideScheduler | TaskCreationOptions.RunContinuationsAsynchronously, updateScheduler);
|
||||||
|
Loading…
Reference in New Issue
Block a user