]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 557780: Remove the unused .substr method in Template.pm
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 7 Apr 2010 14:21:26 +0000 (16:21 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 7 Apr 2010 14:21:26 +0000 (16:21 +0200)
r=glob a=LpSolit

Bugzilla/Template.pm

index 88bfc1f2d462399fa57e90e12a675c99d6ebdbb5..9e8fe8ade6e90db85c0e38f302945de90276d259 100644 (file)
@@ -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 } =