Skip to content

Commit f946b0d

Browse files
committed
Remove unused vars from Mechanize.pm
1 parent abcf1d8 commit f946b0d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/WWW/Mechanize.pm

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,9 +2981,8 @@ C<undef>, it dumps to STDOUT.
29812981
=cut
29822982

29832983
sub dump_text {
2984-
my $self = shift;
2985-
my $fh = shift || \*STDOUT;
2986-
my $absolute = shift;
2984+
my $self = shift;
2985+
my $fh = shift || \*STDOUT;
29872986

29882987
print {$fh} $self->text, "\n";
29892988

@@ -3378,7 +3377,7 @@ sub _extract_images {
33783377
next if $tag_name =~ m{^/};
33793378

33803379
if ( $image_tags{$tag_name} ) {
3381-
my $image = $self->_image_from_token( $token, $parser );
3380+
my $image = $self->_image_from_token($token);
33823381
push( @{ $self->{images} }, $image ) if $image;
33833382
}
33843383
elsif ( $tag_name eq 'style' ) {
@@ -3402,9 +3401,8 @@ sub _extract_images {
34023401
}
34033402

34043403
sub _image_from_token {
3405-
my $self = shift;
3406-
my $token = shift;
3407-
my $parser = shift;
3404+
my $self = shift;
3405+
my $token = shift;
34083406

34093407
my $tag = $token->[0];
34103408
my $attrs = $token->[1];

0 commit comments

Comments
 (0)