summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-04-07 16:21:26 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-04-07 16:21:26 +0200
commitd93728fc725c07416d8e3a20e4c450719aa55cc5 (patch)
treeaaad2a50952710132b6f2a4f5825e7e8f9a062f3 /Bugzilla/Template.pm
parentc379cab55090ab30f28cb3b997699bf7210c3de4 (diff)
downloadbugzilla-d93728fc725c07416d8e3a20e4c450719aa55cc5.tar.gz
bugzilla-d93728fc725c07416d8e3a20e4c450719aa55cc5.tar.xz
Bug 557780: Remove the unused .substr method in Template.pm
r=glob a=LpSolit
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm8
1 files changed, 0 insertions, 8 deletions
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 } =