remove debug code from the Perl::Critic label scanner

This commit is contained in:
Colin Kuskie 2008-07-28 03:23:20 +00:00
parent ee9772d543
commit 9942f9e70d

View file

@ -110,8 +110,6 @@ sub violates {
my $arg_list = $elem->snext_sibling;
return unless ref $arg_list eq 'PPI::Structure::List';
my @arguments = _get_args($arg_list);
use Data::Dumper;
print Dumper \@arguments;
##First argument should be a quote, and there shouldn't be any operators when
##constructing arguments for the get call.
return if exists $arguments[0]->[1] and $arguments[0]->[1]->isa('PPI::Token::Operator');
@ -121,9 +119,6 @@ sub violates {
if ($arguments[1]) {
$namespace = $arguments[1]->[0]->string;
}
print "object : $symbol_name\n";
print "label : $label\n";
print "namespace : $namespace\n";
if (! $self->{i18n}->get($label, $namespace)) {
return $self->violation(
$DESC,