From c7d55ac58283a33852f1a6bd7cd73e1b1cf72974 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 22 Jan 2018 15:22:59 -0800 Subject: [PATCH] utility routines are no longer supported in Text::Xslate --- Debbugs/CGI.pm | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Debbugs/CGI.pm b/Debbugs/CGI.pm index c39a6ca..4567305 100644 --- a/Debbugs/CGI.pm +++ b/Debbugs/CGI.pm @@ -820,23 +820,6 @@ sub option_form{ # we'll add extra comands here once I figure out what they # should be } - # add in a few utility routines - $variables->{output_select_options} = sub { - my ($options,$value) = @_; - my @options = @{$options}; - my $output = ''; - while (my ($o_value,$name) = splice @options,0,2) { - my $selected = ''; - if (defined $value and $o_value eq $value) { - $selected = ' selected'; - } - $output .= q(\n); - } - return $output; - }; - $variables->{make_list} = sub { make_list(@_); - }; # now at this point, we're ready to create the template return Debbugs::Text::fill_in_template(template=>$param{template}, (exists $param{language}?(language=>$param{language}):()), -- 2.39.2