Minor optimisation. There was no point doing named expanders.

This commit is contained in:
ian%hixie.ch 2003-03-14 03:58:46 +00:00
Родитель 707e1d3e88
Коммит cd62b1a9a1
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -191,11 +191,8 @@ sub getString {
sub expandString {
my $self = shift;
my($app, $session, $protocol, $name, $type, $string, $data) = @_;
my $expander = $app->getService("string.expander.named.$name"); # XXX when would anyone override the expander based on the name??
if (not defined($expander)) {
$expander = $app->getService("string.expander.$type");
my $expander = $app->getService("string.expander.$type");
$self->assert($expander, 1, "Could not find a string expander for string '$name' of type '$type'");
}
return $expander->expand($app, $self, $session, $protocol, $string, $data, $type);
}