зеркало из https://github.com/mozilla/gecko-dev.git
Minor optimisation. There was no point doing named expanders.
This commit is contained in:
Родитель
707e1d3e88
Коммит
cd62b1a9a1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче