Skip to content

Commit

Permalink
remove unused SafeSubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Oct 16, 2024
1 parent 09448eb commit 3d54e48
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions osu.Game/Screens/Edit/NewBeatmapEditorChangeHandlerExtension.cs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,16 +14,5 @@ public static void SafeSubmit(this NewBeatmapEditorChangeHandler? manager, IReve
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();
}
}
}
}

0 comments on commit 3d54e48

Please sign in to comment.