Skip to content

Commit

Permalink
Make the deprecated check_* methods protected
Browse files Browse the repository at this point in the history
  • Loading branch information
snacks02 committed Jul 23, 2024
1 parent 2e4d553 commit 6b82150
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/pluto/format/jpeg.cr
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ module Pluto::Format::JPEG
Format::Binding::LibJPEGTurbo.free(buffer)
end

@[Deprecated("The visibility of this method will be changing in the future, and it should not be used directly.")]
# :nodoc:
delegate check_jpeg, to: self.class
protected delegate check_jpeg, to: self.class
end

{% for subclass in Pluto::Image.subclasses %}
Expand Down
4 changes: 1 addition & 3 deletions src/pluto/format/png.cr
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ module Pluto::Format::PNG
LibC.free(buffer)
end

@[Deprecated("The visibility of this method will be changing in the future, and it should not be used directly.")]
# :nodoc:
delegate check_png, to: self.class
protected delegate check_png, to: self.class
end

{% for subclass in Pluto::Image.subclasses %}
Expand Down
4 changes: 1 addition & 3 deletions src/pluto/format/webp.cr
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ module Pluto::Format::WebP
Format::Binding::LibWebP.free(buffer)
end

@[Deprecated("The visibility of this method will be changing in the future, and it should not be used directly.")]
# :nodoc:
delegate check_webp, to: self.class
protected delegate check_webp, to: self.class
end

{% for subclass in Pluto::Image.subclasses %}
Expand Down

0 comments on commit 6b82150

Please sign in to comment.