From: Fabian Keil Date: Tue, 22 Sep 2009 11:33:23 +0000 (+0000) Subject: Remove the undocumented and useless --statistic option. X-Git-Tag: v_3_0_15~52 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=e05c68ee32029deba79826706bcb23e79bb595f5 Remove the undocumented and useless --statistic option. The log level distribution no longer matters. --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 86a1a6ec..e5ddf67c 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.49 2009/09/12 12:36:53 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.50 2009/09/12 12:38:14 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -59,7 +59,6 @@ use constant { CLI_OPTION_ERROR_LOG_FILE => '/var/log/privoxy-log.log', CLI_OPTION_SHOW_INEFFECTIVE_FILTERS => 0, CLI_OPTION_ACCEPT_UNKNOWN_MESSAGES => 0, - CLI_OPTION_STATISTIC => 0, SUPPRESS_SUCCEEDED_FILTER_ADDITIONS => 1, SHOW_SCAN_INTRO => 0, @@ -1919,7 +1918,6 @@ sub parse_loop () { my $time_colour; our $no_special_header_highlighting; $time_colour = paint_it('white'); - my %log_level_count; my %log_level_handlers = ( 'Re-Filter' => \&handle_loglevel_re_filter, @@ -1959,8 +1957,6 @@ sub parse_loop () { $req{$t}{'log-message'} = $_; $no_special_header_highlighting = 0; - $log_level_count{$log_level}++; - if (defined($log_level_handlers{$log_level})) { $content = $log_level_handlers{$log_level}($content); @@ -2018,12 +2014,6 @@ sub parse_loop () { } } } - - if (cli_option_is_set('statistic')) { - foreach (keys %log_level_count) { - print $_ . ": " . $log_level_count{$_} . " "; - } - } } sub VersionMessage { @@ -2046,7 +2036,6 @@ sub get_cli_options () { 'no-msecs' => CLI_OPTION_NO_MSECS, 'show-ineffective-filters' => CLI_OPTION_SHOW_INEFFECTIVE_FILTERS, 'accept-unknown-messages' => CLI_OPTION_ACCEPT_UNKNOWN_MESSAGES, - 'statistic' => CLI_OPTION_STATISTIC, ); GetOptions ( @@ -2057,7 +2046,6 @@ sub get_cli_options () { 'no-msecs' => \$cli_options{'no-msecs'}, 'show-ineffective-filters' => \$cli_options{'show-ineffective-filters'}, 'accept-unknown-messages' => \$cli_options{'accept-unknown-messages'}, - 'statistic' => \$cli_options{'statistic'}, 'version' => sub { VersionMessage && exit(0) } ); }