about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-03 02:06:13 +0000
committerEric Wong <e@80x24.org>2021-01-03 18:30:30 +0000
commit82b805db3ad908f1c3ea114f329835c6f881144a (patch)
tree05c9c4ed0c5af457c4b928bc22e1709271f3b014 /lib/PublicInbox/SearchIdx.pm
parentbf8df8160076d7a1231e0858ca4c243df3b7c860 (diff)
downloadpublic-inbox-82b805db3ad908f1c3ea114f329835c6f881144a.tar.gz
We can remove some now-pointless wrapper functions by using
->ipc_do in even more places.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index d83fd4ca..da3ac2e3 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -552,6 +552,7 @@ sub smsg_from_doc ($) {
 
 sub xdb_remove {
         my ($self, @docids) = @_;
+        $self->begin_txn_lazy;
         my $xdb = $self->{xdb} or return;
         for my $docid (@docids) {
                 eval { $xdb->delete_document($docid) };
@@ -559,13 +560,6 @@ sub xdb_remove {
         }
 }
 
-sub remove_by_docid {
-        my ($self, $num) = @_;
-        die "BUG: remove_by_docid is v2-only\n" if $self->{oidx};
-        $self->begin_txn_lazy;
-        xdb_remove($self, $num) if need_xapian($self);
-}
-
 sub index_git_blob_id {
         my ($doc, $pfx, $objid) = @_;