From 4d32d848e04ebdae1717beb94ec07486d1b9b98c Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 25 Jun 2010 10:46:51 +0100 Subject: [PATCH] Bug 4911 Remove duplicated code Two duplicated subroutine definitions removed Signed-off-by: Galen Charlton --- reports/guided_reports.pl | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index d519423275..269f7a8c9b 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -601,18 +601,6 @@ sub header_cell_loop { return \@headers; } -# pass $sth, get back an array of names for the column headers -sub header_cell_values { - my $sth = shift or return (); - return @{$sth->{NAME}}; -} - -# pass $sth, get back a TMPL_LOOP-able set of names for the column headers -sub header_cell_loop { - my @headers = map { +{ cell => $_ } } header_cell_values (shift); - return \@headers; -} - foreach (1..6) { $template->param('build' . $_) and $template->param(buildx => $_) and last; } -- 2.20.1