Commit 98729dd6 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2173 from suzukaze/delete-unuse-variable

Delete unused variable in Array#delete_if
parents 72fe54c4 1aa885fa
...@@ -617,7 +617,6 @@ class Array ...@@ -617,7 +617,6 @@ class Array
return to_enum :delete_if unless block_given? return to_enum :delete_if unless block_given?
idx = 0 idx = 0
len = self.size
while idx < self.size do while idx < self.size do
if block.call(self[idx]) if block.call(self[idx])
self.delete_at(idx) self.delete_at(idx)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment