1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Remove unnecessary clone operations

This commit is contained in:
Dean Herbert 2021-10-07 17:22:10 +09:00
parent 7dd7d35fc8
commit d3efec3c04

View File

@ -119,9 +119,6 @@ namespace osu.Game.Beatmaps
// Apply difficulty mods
if (mods.Any(m => m is IApplicableToDifficulty))
{
converted.BeatmapInfo = converted.BeatmapInfo.Clone();
converted.Difficulty = converted.Difficulty.Clone();
foreach (var mod in mods.OfType<IApplicableToDifficulty>())
{
if (cancellationSource.IsCancellationRequested)