Skip to content

Commit

Permalink
Remove unnecessary command invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
miroiu committed Jul 27, 2024
1 parent a4d69b1 commit c4f7582
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Nodify/NodifyEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1475,11 +1475,6 @@ protected internal void StartCutting(Point location)
CuttingLineStart = location;
CuttingLineEnd = location;
IsCutting = true;

if (CuttingStartedCommand?.CanExecute(DataContext) ?? false)
{
CuttingStartedCommand.Execute(DataContext);
}
}

/// <summary>
Expand All @@ -1490,11 +1485,6 @@ protected internal void CancelCutting()
if (IsCutting)
{
IsCutting = false;

if (CuttingCompletedCommand?.CanExecute(DataContext) ?? false)
{
CuttingCompletedCommand.Execute(DataContext);
}
}
}

Expand Down Expand Up @@ -1526,11 +1516,6 @@ protected internal void EndCutting(Point location)
}
}

if (CuttingCompletedCommand?.CanExecute(DataContext) ?? false)
{
CuttingCompletedCommand.Execute(DataContext);
}

IsCutting = false;
}

Expand Down

0 comments on commit c4f7582

Please sign in to comment.