]> git.sesse.net Git - foosball/commitdiff
Remove obsolete code.
authorSteinar H. Gunderson <sesse@debian.org>
Wed, 3 Oct 2007 21:33:25 +0000 (23:33 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Wed, 3 Oct 2007 21:33:25 +0000 (23:33 +0200)
foosball.pm

index 4fd318c85b4f2c4d625fef094c9fe6f843aac81a..f87f7637d2039dd407db7aa6eca2d12af1f53cdc 100644 (file)
@@ -40,21 +40,6 @@ sub create_user_if_not_exists {
        return $dbh;
 }
 
-# 10-9 is 0.60
-# 10-0 is 1.00
-sub find_score {
-       my ($score1, $score2) = @_;
-       if ($score1 == 10) {
-               # yay, a win
-               return 0.60 + 0.40 * (9.0-$score2)/9.0;
-       }
-       if ($score2 == 10) {
-               # a loss
-               return 0.40 - 0.40 * (9.0-$score1)/9.0;
-       }
-       die "Nobody won?";
-}
-
 # c=8 => RD=50 moves to RD=350 over approx. five years
 our $c = 8;