Commit d93728fc authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 557780: Remove the unused .substr method in Template.pm

r=glob a=LpSolit
parent c379cab5
......@@ -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 } =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment