]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiExternal.pm
lei: tie ALE lifetime to config file
[public-inbox.git] / lib / PublicInbox / LeiExternal.pm
index aa09be9ea980035d4a2024497c69d025c7bf523e..b5dd85e158b18f007cf53f97e6e6c08f896430e0 100644 (file)
@@ -139,12 +139,6 @@ sub add_external_finish {
        my $key = "external.$location.boost";
        my $cur_boost = $cfg->{$key};
        return if defined($cur_boost) && $cur_boost == $new_boost; # idempotent
-       if (-d $location) {
-               require PublicInbox::LeiXSearch;
-               my $lxs = PublicInbox::LeiXSearch->new;
-               $lxs->prepare_external($location);
-               $self->ale->refresh_externals($lxs);
-       }
        $self->lei_config($key, $new_boost);
 }