Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused code from Menu.pm

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...
commit d992a7d0f85ad1d7a99d20552b1f30ba1a91ec69 1 parent 7a9cdde
Peter Ajamian pajamian authored
Showing with 0 additions and 15 deletions.
  1. +0 −15 lib/Vend/Menu.pm
15 lib/Vend/Menu.pm
View
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.