Skip to content

Commit

Permalink
Array#nitems() has been removed from 1.9.
Browse files Browse the repository at this point in the history
Signed-off-by: Ted Reed <ted.reed@gmail.com>
  • Loading branch information
dtm authored and treed committed Aug 23, 2009
1 parent f34c51f commit c6d9334
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
3 changes: 1 addition & 2 deletions Rakefile
Expand Up @@ -296,7 +296,6 @@ namespace :test do |ns|
test "array/intersection.t"
test "array/join.t"
test "array/mathop.t"
test "array/nitems.t"
test "array/pop.t"
test "array/push.t"
test "array/reject.t"
Expand All @@ -311,7 +310,7 @@ namespace :test do |ns|
test "array/warray.t"

desc "Run tests on Array."
task :all => [:array, :assign, :at, :clear, :collect, :compact, :concat, :delete, :empty, :equals, :fetch, :fill, :first, :flatten, :grep, :include, :index, :insert, :intersection, :join, :mathop, :nitems, :pop, :push, :reject, :replace, :reverse, :shift, :slice, :sort, :to_s, :uniq, :values_at, :warray]
task :all => [:array, :assign, :at, :clear, :collect, :compact, :concat, :delete, :empty, :equals, :fetch, :fill, :first, :flatten, :grep, :include, :index, :insert, :intersection, :join, :mathop, :pop, :push, :reject, :replace, :reverse, :shift, :slice, :sort, :to_s, :uniq, :values_at, :warray]
end

namespace :file do
Expand Down
16 changes: 0 additions & 16 deletions src/classes/Array.pir
Expand Up @@ -1640,22 +1640,6 @@ The zip operator.
# TODO: pass warning
.end

.sub 'nitems' :method
.local int count
.local pmc it
count = 0
it = iter self
iter_loop:
unless it goto done
$P0 = shift it
$I0 = isa $P0, "NilClass"
if $I0 goto iter_loop
inc count
goto iter_loop
done:
.return ( count )
.end

.sub '_cmp' :vtable('cmp') :method
.param pmc other
.local int i, len, result
Expand Down
16 changes: 0 additions & 16 deletions t/array/nitems.t

This file was deleted.

0 comments on commit c6d9334

Please sign in to comment.