From 171536ef785ed241ff9b96945fd8e57082cb248a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 14 Dec 2014 00:06:40 +0100 Subject: [PATCH] Remove dead code. --- www/opening-stats.pl | 5 ----- 1 file changed, 5 deletions(-) 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: $!"; -- 2.39.2