about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdxShard.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/SearchIdxShard.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/SearchIdxShard.pm')
-rw-r--r--lib/PublicInbox/SearchIdxShard.pm30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm
index 68644bc0..43dad959 100644
--- a/lib/PublicInbox/SearchIdxShard.pm
+++ b/lib/PublicInbox/SearchIdxShard.pm
@@ -54,16 +54,6 @@ sub index_raw {
         $self->ipc_do('add_message', $eml, $smsg);
 }
 
-sub shard_add_eidx_info {
-        my ($self, $docid, $eidx_key, $eml) = @_;
-        $self->ipc_do('add_eidx_info', $docid, $eidx_key, $eml);
-}
-
-sub shard_remove_eidx_info {
-        my ($self, $docid, $eidx_key, $eml) = @_;
-        $self->ipc_do('remove_eidx_info', $docid, $eidx_key, $eml);
-}
-
 # needed when there's multiple IPC workers and the parent forking
 # causes newer siblings to inherit older siblings sockets
 sub shard_atfork_child {
@@ -93,26 +83,6 @@ sub shard_close {
         $self->ipc_worker_stop;
 }
 
-sub shard_remove {
-        my ($self, $num) = @_;
-        $self->ipc_do('remove_by_docid', $num);
-}
-
-sub shard_set_keywords {
-        my ($self, $docid, @kw) = @_;
-        $self->ipc_do('set_keywords', $docid, @kw);
-}
-
-sub shard_remove_keywords {
-        my ($self, $docid, @kw) = @_;
-        $self->ipc_do('remove_keywords', $docid, @kw);
-}
-
-sub shard_add_keywords {
-        my ($self, $docid, @kw) = @_;
-        $self->ipc_do('add_keywords', $docid, @kw);
-}
-
 sub shard_over_check {
         my ($self, $over) = @_;
         if ($self->{-ipc_sock} && $over->{dbh}) {