From 2dc3c4f5195ba77f5b43392f4df96aa48b09284e 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 e950b28a5..c4b656297 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 36335b71b..8da19469e 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]);