Browse Source

Removed unused param

Krzysztof Krysiński 2 years ago
parent
commit
34f2f4f030

+ 1 - 3
src/PixiEditor.ChangeableDocument/Changes/Selection/MagicWand/MagicWand_Change.cs

@@ -11,16 +11,14 @@ internal class MagicWand_Change : Change
     private VectorPath path = new() { FillType = PathFillType.EvenOdd };
     private VecI point;
     private readonly List<Guid> memberGuids;
-    private readonly bool drawOnMask;
     private readonly SelectionMode mode;
 
     [GenerateMakeChangeAction]
-    public MagicWand_Change(List<Guid> memberGuids, VecI point, SelectionMode mode, bool drawOnMask)
+    public MagicWand_Change(List<Guid> memberGuids, VecI point, SelectionMode mode)
     {
         path.MoveTo(point);
         this.mode = mode;
         this.memberGuids = memberGuids;
-        this.drawOnMask = drawOnMask;
         this.point = point;
     }
 

+ 1 - 1
src/PixiEditor/Models/DocumentModels/UpdateableChangeExecutors/MagicWandToolExecutor.cs

@@ -29,7 +29,7 @@ internal class MagicWandToolExecutor : UpdateableChangeExecutor
             memberGuids = document!.StructureHelper.GetAllLayers().Select(x => x.GuidValue).ToList();
         var pos = controller!.LastPixelPosition;
 
-        internals!.ActionAccumulator.AddActions(new MagicWand_Action(memberGuids, pos, mode, considerAllLayers));
+        internals!.ActionAccumulator.AddActions(new MagicWand_Action(memberGuids, pos, mode));
 
         return ExecutionState.Success;
     }