From e60b07df55f94fbae095716292e22b4c6d25a1b6 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 10 Sep 2017 20:30:58 +1000 Subject: [PATCH] Remove unused local variables --- src/ImageSharp/Image/ImageFrame{TPixel}.cs | 2 -- src/ImageSharp/Image/Image{TPixel}.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/ImageSharp/Image/ImageFrame{TPixel}.cs b/src/ImageSharp/Image/ImageFrame{TPixel}.cs index e950b28a5c..c4b6562976 100644 --- a/src/ImageSharp/Image/ImageFrame{TPixel}.cs +++ b/src/ImageSharp/Image/ImageFrame{TPixel}.cs @@ -166,8 +166,6 @@ namespace SixLabors.ImageSharp { Guard.NotNull(pixelSource, nameof(pixelSource)); - int newWidth = pixelSource.Width; - int newHeight = pixelSource.Height; Buffer2D newPixels = pixelSource.pixelBuffer; pixelSource.pixelBuffer = this.pixelBuffer; diff --git a/src/ImageSharp/Image/Image{TPixel}.cs b/src/ImageSharp/Image/Image{TPixel}.cs index 36335b71b6..8da19469e5 100644 --- a/src/ImageSharp/Image/Image{TPixel}.cs +++ b/src/ImageSharp/Image/Image{TPixel}.cs @@ -183,8 +183,6 @@ namespace SixLabors.ImageSharp { Guard.NotNull(pixelSource, nameof(pixelSource)); - int newHeight = pixelSource.Height; - for (int i = 0; i < this.Frames.Count; i++) { this.Frames[i].SwapPixelsBuffers(pixelSource.Frames[i]);