projects
/
rubyvote
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca21f75
)
Missed a now unnecessary assignment to @candidates in #tally_votes
author
Joe Slag
<joe@slagwerks.com>
Mon, 19 Mar 2007 17:52:37 +0000
(17:52 +0000)
committer
Joe Slag
<joe@slagwerks.com>
Mon, 19 Mar 2007 17:52:37 +0000
(17:52 +0000)
git-svn-id: svn://rubyforge.org/var/svn/rubyvote/trunk@19
1440c7f4
-e209-0410-9a04-
881b5eb134a8
lib/rubyvote/condorcet.rb
patch
|
blob
|
history
diff --git
a/lib/rubyvote/condorcet.rb
b/lib/rubyvote/condorcet.rb
index 68b3c708d25fa324dd2d361b210fc10fd0184a08..96a103bd479c5bcf3e7d575cacd5d71f4afe8f78 100644
(file)
--- a/
lib/rubyvote/condorcet.rb
+++ b/
lib/rubyvote/condorcet.rb
@@
-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?