From d93728fc725c07416d8e3a20e4c450719aa55cc5 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 7 Apr 2010 16:21:26 +0200 Subject: Bug 557780: Remove the unused .substr method in Template.pm r=glob a=LpSolit --- Bugzilla/Template.pm | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 88bfc1f2d..9e8fe8ade 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 } = -- cgit v1.2.3-24-g4f1b