[interchange] Removed unused code from Menu.pm
Peter Ajamian
interchange-cvs at icdevgroup.org
Wed Dec 14 20:29:17 UTC 2011
commit d992a7d0f85ad1d7a99d20552b1f30ba1a91ec69
Author: Peter Ajamian <peter at pajamian.dhs.org>
Date: Thu Dec 15 09:26:40 2011 +1300
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.
lib/Vend/Menu.pm | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/lib/Vend/Menu.pm b/lib/Vend/Menu.pm
index 5e32574..adb3449 100644
--- a/lib/Vend/Menu.pm
+++ b/lib/Vend/Menu.pm
@@ -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");
More information about the interchange-cvs
mailing list