Skip to content

Commit

Permalink
Remove CameraWidget::Base#==(other : Regex) overload
Browse files Browse the repository at this point in the history
As it's too magical and pretty pointless
  • Loading branch information
Sija committed Nov 27, 2023
1 parent 801f60f commit b6e791b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/gphoto2/camera_widgets/base.cr
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,6 @@ module GPhoto2
self.to_s == other.to_s.capitalize
end

# Compares `#value` with given `Regex`.
#
# ```
# camera[:whitebalance] == /Automatic/
# ```
def ==(other : Regex)
other === self.to_s
end

# Returns `true` if `#value` matches at least one element of the collection.
#
# ```
Expand Down

0 comments on commit b6e791b

Please sign in to comment.