Commit 1aa885fa authored by Jun Hiroe's avatar Jun Hiroe

Delete unused variable in Array#delete_if

parent 72fe54c4
...@@ -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