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]);