Skip to content

Commit

Permalink
doc: fix RemoveProfile doesn't throw MagickException [skip ci] (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gounlaf committed Mar 8, 2024
1 parent e49ebfe commit 2024a37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Magick.NET.Core/IMagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2746,14 +2746,12 @@ Interlace Interlace
/// Remove a profile from the image.
/// </summary>
/// <param name="profile">The profile to remove.</param>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
public void RemoveProfile(IImageProfile profile);

/// <summary>
/// Remove a named profile from the image.
/// </summary>
/// <param name="name">The name of the profile (e.g. "ICM", "IPTC", or a generic profile name).</param>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
void RemoveProfile(string name);

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions src/Magick.NET/MagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5382,7 +5382,6 @@ public void RemoveRegionMask()
/// Remove a profile from the image.
/// </summary>
/// <param name="profile">The profile to remove.</param>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
public void RemoveProfile(IImageProfile profile)
{
Throw.IfNull(nameof(profile), profile);
Expand All @@ -5394,7 +5393,6 @@ public void RemoveProfile(IImageProfile profile)
/// Remove a named profile from the image.
/// </summary>
/// <param name="name">The name of the profile (e.g. "ICM", "IPTC", or a generic profile name).</param>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
public void RemoveProfile(string name)
{
Throw.IfNullOrEmpty(nameof(name), name);
Expand Down

0 comments on commit 2024a37

Please sign in to comment.