From: Steinar H. Gunderson Date: Sat, 13 Dec 2014 23:06:40 +0000 (+0100) Subject: Remove dead code. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=171536ef785ed241ff9b96945fd8e57082cb248a;p=remoteglot-book Remove dead code. --- diff --git a/www/opening-stats.pl b/www/opening-stats.pl index adf138f..a17a82f 100755 --- a/www/opening-stats.pl +++ b/www/opening-stats.pl @@ -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: $!";