mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-set: remove __equal_fallback that no longer used
This commit is contained in:
@@ -33,15 +33,6 @@ class Set
|
||||
n
|
||||
end
|
||||
|
||||
# Helper method for complex equality checks
|
||||
def __equal_fallback(other)
|
||||
if other.is_a?(self.class) && self.size == other.size
|
||||
other.all? { |o| include?(o) }
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
def flatten_merge(set, seen = Set.new)
|
||||
seen.add(set.object_id)
|
||||
set.each { |e|
|
||||
|
||||
Reference in New Issue
Block a user