Skip to content

Commit

Permalink
Deprecate delegated check_* methods (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
snacks02 committed Sep 25, 2023
1 parent 2c59033 commit c50e379
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pluto/format/jpeg.cr
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ 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
end

Expand Down
2 changes: 2 additions & 0 deletions src/pluto/format/png.cr
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ 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
end

Expand Down
2 changes: 2 additions & 0 deletions src/pluto/format/webp.cr
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ 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
end

Expand Down

0 comments on commit c50e379

Please sign in to comment.