1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

remove unused SafeSubmit

This commit is contained in:
OliBomby 2024-10-16 20:21:47 +02:00
parent 09448eb6c4
commit 3d54e4891f

View File

@ -1,7 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Game.Screens.Edit.Changes;
namespace osu.Game.Screens.Edit
@ -15,16 +14,5 @@ namespace osu.Game.Screens.Edit
else
command.Apply();
}
public static void SafeSubmit(this NewBeatmapEditorChangeHandler? manager, IEnumerable<IRevertableChange> commands, bool commitImmediately = false)
{
if (manager != null)
manager.Submit(commands, commitImmediately);
else
{
foreach (var command in commands)
command.Apply();
}
}
}
}