Browse Source

Remove stuff I forgot to remove

Equbuxu 4 years ago
parent
commit
a6d0ba5612

+ 0 - 4
PixiEditor/Helpers/LayerBitmapContext.cs

@@ -29,10 +29,6 @@ namespace PixiEditor.Helpers
             {
                 int pos = (realY * ctx.Width + realX) * 4;
                 byte* pixels = (byte*)ctx.Pixels;
-                byte R = pixels[pos + 2];
-                byte G = pixels[pos + 1];
-                byte B = pixels[pos];
-                byte A = pixels[pos + 3];
                 return pixels[pos] == premult.B && pixels[pos + 1] == premult.G && pixels[pos + 2] == premult.R && pixels[pos + 3] == premult.A;
             }
         }

+ 1 - 7
PixiEditor/Models/Tools/Tools/FloodFill.cs

@@ -4,7 +4,6 @@ using PixiEditor.Models.DataHolders;
 using PixiEditor.Models.Layers;
 using PixiEditor.Models.Position;
 using System.Collections.Generic;
-using System.Diagnostics;
 using System.Windows.Media;
 
 namespace PixiEditor.Models.Tools.Tools
@@ -24,12 +23,7 @@ namespace PixiEditor.Models.Tools.Tools
 
         public override LayerChange[] Use(Layer layer, List<Coordinates> coordinates, Color color)
         {
-            Stopwatch sw = new Stopwatch();
-            sw.Start();
-            var res = Only(LinearFill(layer, coordinates[0], color), layer);
-            sw.Stop();
-            Trace.WriteLine($"Elapsed: {sw.ElapsedMilliseconds}");
-            return res;
+            return Only(LinearFill(layer, coordinates[0], color), layer);
         }
 
         public BitmapPixelChanges LinearFill(Layer layer, Coordinates startingCoords, Color newColor)