Missed a now unnecessary assignment to @candidates in #tally_votes
[rubyvote] / lib / rubyvote / condorcet.rb
index 68b3c70..96a103b 100644 (file)
@@ -76,8 +76,6 @@ class CondorcetVote < ElectionVote
 
           # make sure we have a comparable object
           @votes[loser][winner] = 0 unless @votes[loser].has_key?( winner )
 
           # make sure we have a comparable object
           @votes[loser][winner] = 0 unless @votes[loser].has_key?( winner )
-
-          @candidates << loser unless @candidates.include?( loser )
         end
       end
     end
         end
       end
     end

Benjamin Mako Hill || Want to submit a patch?