]> git.sesse.net Git - foosball/commitdiff
Remove superfluous stuff.
authorSteinar H. Gunderson <sesse@debian.org>
Wed, 3 Oct 2007 20:03:55 +0000 (22:03 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Wed, 3 Oct 2007 20:03:55 +0000 (22:03 +0200)
www/add-single-result.pl

index 78a989e460cc93c8cfe472d9651c8111ec8a3667..0037020197c48c3fdbde95f65e430ebfc747d2f3 100755 (executable)
@@ -40,10 +40,6 @@ my $q = $foosball::q;
 my ($newr1, $newrd1) = foosball::calc_rating($rating1, $rd1, $rating2, $rd2, $score1, $score2);
 my ($newr2, $newrd2) = foosball::calc_rating($rating2, $rd2, $rating1, $rd1, $score2, $score1);
 
-my $d2sq = foosball::dsq($rating2, $rating1, $rd1);
-my $newr2 = $rating2 + ($q / (1.0/($rd2*$rd2) + 1.0 / $d2sq)) * foosball::g($rd1) * ($s2 - foosball::E($rating2, $rating1, $rd1));
-my $newrd2 = sqrt(1.0 / (1.0 / ($rd2*$rd2) + 1.0 / $d2sq));
-
 $dbh->do('INSERT INTO single_results (gametime,username1,username2,score1,score2) VALUES (CURRENT_TIMESTAMP,?,?,?,?)',
        undef, $username1, $username2, $score1, $score2);
 $dbh->do('INSERT INTO single_rating (username,ratetime,rating,rd) VALUES (?,CURRENT_TIMESTAMP,?,?)',