Skip to content

Commit

Permalink
Simplify DependencyList#active_count.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwallace authored and zenspider committed Dec 29, 2010
1 parent 1f9d913 commit 66aa6e2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/rubygems/dependency_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,7 @@ def tsort_each_child(node, &block)
# +ignored+.

def active_count(specs, ignored)
result = 0

specs.each do |spec|
result += 1 unless ignored[spec.full_name]
end

result
specs.count { |spec| ignored[spec.full_name].nil? }
end

end
Expand Down

0 comments on commit 66aa6e2

Please sign in to comment.