]> git.sesse.net Git - remoteglot-book/commitdiff
Remove dead code.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Dec 2014 23:06:40 +0000 (00:06 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Dec 2014 23:06:40 +0000 (00:06 +0100)
www/opening-stats.pl

index adf138f0a80dbb63a2cab9f533156280e33aa019..a17a82f067978cde4b46b033e3dbaaaa23d79d03 100755 (executable)
@@ -68,11 +68,6 @@ for my $move (@moves) {
 print $cgi->header(-type=>'application/json');
 print JSON::XS::encode_json({ moves => \@json_moves, opening => $opening, root_game => $root_game });
 
-sub num {
-       my $x = shift;
-       return $x->{'white'} + $x->{'draw'} + $x->{'black'};
-}
-
 sub read_openings {
        open my $fh, "../openings.txt"
                or die "../openings.txt: $!";