From: Frédéric Buclin Date: Wed, 7 Apr 2010 14:21:26 +0000 (+0200) Subject: Bug 557780: Remove the unused .substr method in Template.pm X-Git-Tag: bugzilla-3.7.1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d93728fc725c07416d8e3a20e4c450719aa55cc5;p=thirdparty%2Fbugzilla.git Bug 557780: Remove the unused .substr method in Template.pm r=glob a=LpSolit --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 88bfc1f2d4..9e8fe8ade6 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -401,14 +401,6 @@ $Template::Stash::SCALAR_OPS->{ 0 } = return $_[0]; }; -# Add a "substr" method to the Template Toolkit's "scalar" object -# that returns a substring of a string. -$Template::Stash::SCALAR_OPS->{ substr } = - sub { - my ($scalar, $offset, $length) = @_; - return substr($scalar, $offset, $length); - }; - # Add a "truncate" method to the Template Toolkit's "scalar" object # that truncates a string to a certain length. $Template::Stash::SCALAR_OPS->{ truncate } =