summaryrefslogtreecommitdiff
path: root/array.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2024-07-19 18:36:14 -0700
committerGitHub <noreply@github.com>2024-07-19 18:36:14 -0700
commit174c01b80e31236ca144dc510a662cd18b9a20ee (patch)
tree4b83e7e29592212bd3b840ce2b6611d56e39ab9b /array.rb
parent8cf708d7b495f62d6239a49af25c362d0156e6aa (diff)
Remove redundant :use_block with yield (#11203)
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'array.rb')
-rw-r--r--array.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/array.rb b/array.rb
index 2ebef6e62e..b45d6ece32 100644
--- a/array.rb
+++ b/array.rb
@@ -43,7 +43,6 @@ class Array
# Related: #each_index, #reverse_each.
def each
Primitive.attr! :inline_block
- Primitive.attr! :use_block
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 0, 0, ary_enum_length)'
@@ -73,7 +72,6 @@ class Array
# a1 # => #<Enumerator: [:foo, "bar", 2]:map>
def map
Primitive.attr! :inline_block
- Primitive.attr! :use_block
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 0, 0, ary_enum_length)'
@@ -108,7 +106,6 @@ class Array
# a.select # => #<Enumerator: [:foo, "bar", 2, :bam]:select>
def select
Primitive.attr! :inline_block
- Primitive.attr! :use_block
unless defined?(yield)
return Primitive.cexpr! 'SIZED_ENUMERATOR(self, 0, 0, ary_enum_length)'