summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-03 09:02:29 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-03 09:02:29 +0900
commit98729dd69afde1fb6c2c20a726917e037c34b190 (patch)
tree093b37f5e1a275803e85731f21c77b578e9d9e4d /mrbgems/mruby-array-ext
parent72fe54c40316acff40f7748e447db9e7bc73849d (diff)
parent1aa885fae0fd870c2f2bc862daa14ad24f4e92eb (diff)
downloadmruby-98729dd69afde1fb6c2c20a726917e037c34b190.tar.gz
mruby-98729dd69afde1fb6c2c20a726917e037c34b190.zip
Merge pull request #2173 from suzukaze/delete-unuse-variable
Delete unused variable in Array#delete_if
Diffstat (limited to 'mrbgems/mruby-array-ext')
-rw-r--r--mrbgems/mruby-array-ext/mrblib/array.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb
index df3ab97e4..fd80fa0bb 100644
--- a/mrbgems/mruby-array-ext/mrblib/array.rb
+++ b/mrbgems/mruby-array-ext/mrblib/array.rb
@@ -617,7 +617,6 @@ class Array
return to_enum :delete_if unless block_given?
idx = 0
- len = self.size
while idx < self.size do
if block.call(self[idx])
self.delete_at(idx)