Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
OliBomby committed Oct 10, 2024
1 parent 86a11f6 commit c30e70c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion osu.Game/Screens/Edit/Commands/IEditorCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public interface IEditorCommand

public IEditorCommand CreateUndo();

public virtual bool IsRedundant => false;
public bool IsRedundant => false;
}
}
2 changes: 1 addition & 1 deletion osu.Game/Screens/Edit/Commands/MoveCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace osu.Game.Screens.Edit.Commands
{
public class MoveCommand : IEditorCommand, IMergeableCommand
public class MoveCommand : IMergeableCommand
{
public readonly IHasMutablePosition Target;

Expand Down
6 changes: 0 additions & 6 deletions osu.Game/Screens/Edit/EditorCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ namespace osu.Game.Screens.Edit
{
public partial class EditorCommandHandler
{
public EditorCommandHandler()
{
}

public event Action<IEditorCommand>? CommandApplied;

public readonly Bindable<bool> CanUndo = new BindableBool();
Expand Down Expand Up @@ -143,8 +139,6 @@ private void record(IEditorCommand command)
currentTransaction.Add(reverse);
}

private readonly record struct HistoryEntry(IEditorCommand Command, IEditorCommand Reverse);

private readonly struct Transaction
{
public Transaction()
Expand Down

0 comments on commit c30e70c

Please sign in to comment.