Skip to content

Commit 15be717

Browse files
committed
Remove unused vars from Mechanize.pm
1 parent 5372d16 commit 15be717

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
@@ -2995,9 +2995,8 @@ C<undef>, it dumps to STDOUT.
29952995
=cut
29962996

29972997
sub dump_text {
2998-
my $self = shift;
2999-
my $fh = shift || \*STDOUT;
3000-
my $absolute = shift;
2998+
my $self = shift;
2999+
my $fh = shift || \*STDOUT;
30013000

30023001
print {$fh} $self->text, "\n";
30033002

@@ -3392,7 +3391,7 @@ sub _extract_images {
33923391
next if $tag_name =~ m{^/};
33933392

33943393
if ( $image_tags{$tag_name} ) {
3395-
my $image = $self->_image_from_token( $token, $parser );
3394+
my $image = $self->_image_from_token($token);
33963395
push( @{ $self->{images} }, $image ) if $image;
33973396
}
33983397
elsif ( $tag_name eq 'style' ) {
@@ -3416,9 +3415,8 @@ sub _extract_images {
34163415
}
34173416

34183417
sub _image_from_token {
3419-
my $self = shift;
3420-
my $token = shift;
3421-
my $parser = shift;
3418+
my $self = shift;
3419+
my $token = shift;
34223420

34233421
my $tag = $token->[0];
34243422
my $attrs = $token->[1];

0 commit comments

Comments
 (0)