Skip to content

Commit

Permalink
Remove unused $last_object variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Jul 2, 2022
1 parent 9d95ab8 commit bf8e491
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/PDF/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,6 @@ sub generate_content_stream {
my $stream = "";

# Loop across parsed objects.
my $last_object;
foreach my $object (@{$objects}) {
# Check parsed object type.
if ($object->[1]{type} eq "dict") {
Expand All @@ -669,8 +668,6 @@ sub generate_content_stream {
# Serialize string or other token.
$self->serialize_object(\$stream, $object->[0]);
}
} continue {
$last_object = $object;
}

# Return generated content stream.
Expand Down

0 comments on commit bf8e491

Please sign in to comment.