diff --git a/src/ImageSharp/Image/Image{TColor}.cs b/src/ImageSharp/Image/Image{TColor}.cs
index 3a76cf63ff..34724cc977 100644
--- a/src/ImageSharp/Image/Image{TColor}.cs
+++ b/src/ImageSharp/Image/Image{TColor}.cs
@@ -349,9 +349,7 @@ namespace ImageSharp
/// The
public Image Save(Stream stream, IEncoderOptions options)
{
- Guard.NotNull(stream, nameof(stream));
- this.SaveInternal(stream, this.CurrentImageFormat?.Encoder, options);
- return this;
+ return this.Save(stream, this.CurrentImageFormat?.Encoder, options);
}
///
@@ -376,9 +374,7 @@ namespace ImageSharp
{
Guard.NotNull(format, nameof(format));
- this.SaveInternal(stream, format.Encoder, options);
-
- return this;
+ return this.Save(stream, format.Encoder, options);
}
///
@@ -407,7 +403,10 @@ namespace ImageSharp
///
public Image Save(Stream stream, IImageEncoder encoder, IEncoderOptions options)
{
- this.SaveInternal(stream, encoder, options);
+ Guard.NotNull(stream, nameof(stream));
+ Guard.NotNull(encoder, nameof(encoder));
+
+ encoder.Encode(this, stream, options);
return this;
}
@@ -581,22 +580,6 @@ namespace ImageSharp
base.Dispose(disposing);
}
- ///
- /// Internally saves the image to the given stream using the given image encoder and options.
- /// Can be used by overridden by tests to verify save opperations.
- ///
- /// The stream to save the image to.
- /// The encoder to save the image with.
- /// The options for the encoder.
- /// Thrown if the stream or encoder is null.
- private void SaveInternal(Stream stream, IImageEncoder encoder, IEncoderOptions options)
- {
- Guard.NotNull(stream, nameof(stream));
- Guard.NotNull(encoder, nameof(encoder));
-
- encoder.Encode(this, stream, options);
- }
-
///
/// Copies the properties from the other .
///