about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index f569428c..17538027 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -545,17 +545,9 @@ sub add_message {
         $smsg->{num};
 }
 
-sub get_doc ($$) {
-        my ($self, $docid) = @_;
-        eval { $self->{xdb}->get_document($docid) } // do {
-                die $@ if $@ && ref($@) !~ /\bDocNotFoundError\b/;
-                undef;
-        }
-}
-
 sub _get_doc ($$) {
         my ($self, $docid) = @_;
-        get_doc($self, $docid) // do {
+        $self->get_doc($docid) // do {
                 warn "E: #$docid missing in Xapian\n";
                 undef;
         }