Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: cvs

[interchange] Removed unused code from Menu.pm

 

 

Interchange cvs RSS feed   Index | Next | Previous | View Threaded


interchange-cvs at icdevgroup

Dec 14, 2011, 12:29 PM

Post #1 of 1 (232 views)
Permalink
[interchange] Removed unused code from Menu.pm

commit d992a7d0f85ad1d7a99d20552b1f30ba1a91ec69
Author: Peter Ajamian <peter [at] pajamian>
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");

_______________________________________________
interchange-cvs mailing list
interchange-cvs [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs

Interchange cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.