Skip to content

Commit

Permalink
Removed unused code from Menu.pm
Browse files Browse the repository at this point in the history
The %transform hash in lib/Vend/Menu.pm contains two entries for the
"first_line" key.  This removes the first one which has always been overriden by
the second and therefore never used anyways.
  • Loading branch information
pajamian committed Dec 14, 2011
1 parent 7a9cdde commit d992a7d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/Vend/Menu.pm
Expand Up @@ -57,21 +57,6 @@ my %transform = (
}
return 1;
},
first_line => sub {
my ($row, $fields) = @_;
return undef if ref($fields) ne 'ARRAY';
return 1 if $first_line;
my $status;
for(@$fields) {
if(s/^!\s*//) {
$status = $status && ! $row->{$_};
}
else {
$status = $status && $row->{$_};
}
}
return $first_line = $status;
},
last_line => sub {
my ($row, $fields) = @_;
#::logDebug("last_line transform, last_line=$last_line");
Expand Down

0 comments on commit d992a7d

Please sign in to comment.