Skip to content

Commit 21d94f2

Browse files
committed
one leftover
1 parent 30364ac commit 21d94f2

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/ImageSharp/ImageExtensions.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ public static void Save(this Image source, string path, IImageEncoder encoder)
5555
}
5656
}
5757

58-
/// <summary>
59-
/// Writes the image to the given stream using the currently loaded image format.
60-
/// </summary>
61-
/// <param name="source">The source image.</param>
62-
/// <param name="path">The file path to save the image to.</param>
63-
/// <param name="encoder">The encoder to save the image with.</param>
64-
/// <exception cref="ArgumentNullException">The path is null.</exception>
65-
/// <exception cref="ArgumentNullException">The encoder is null.</exception>
66-
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
67-
public static Task SaveAsync(this Image source, string path, IImageEncoder encoder)
68-
=> SaveAsync(source, path, encoder, default);
69-
7058
/// <summary>
7159
/// Writes the image to the given stream using the currently loaded image format.
7260
/// </summary>
@@ -81,7 +69,7 @@ public static async Task SaveAsync(
8169
this Image source,
8270
string path,
8371
IImageEncoder encoder,
84-
CancellationToken cancellationToken)
72+
CancellationToken cancellationToken = default)
8573
{
8674
Guard.NotNull(path, nameof(path));
8775
Guard.NotNull(encoder, nameof(encoder));

0 commit comments

Comments
 (0)