mruby-set (__get_hash): remove no longer used method

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-06-19 18:40:42 +09:00
parent 7ffe6a3a9a
commit 11106525c4
-10
View File
@@ -8,16 +8,6 @@ class Set
end
end
# internal method to get internal hash (compatibility bridge)
def __get_hash
# For C implementation, create a Ruby hash representation
# This is only used by Ruby fallback methods
hash = {}
each { |element| hash[element] = true }
hash
end
# Helper method for initialize with block
def __init_with_block(enum, &block)
__do_with_enum(enum) { |o| add(block.call(o)) }