]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchmsg: remove unused ->get subroutine
authorEric Wong <e@80x24.org>
Thu, 13 Jun 2019 01:49:11 +0000 (01:49 +0000)
committerEric Wong <e@80x24.org>
Thu, 13 Jun 2019 01:50:18 +0000 (01:50 +0000)
It's obsolete and unusable since our search schema version 15;
which made the Xapian document ID correspond to the NNTP article
number.

lib/PublicInbox/SearchMsg.pm

index 5f3c8af8c1c8283d33fa56f95bd4bb6945b94f0d..96a26b1538a7775bef753480adead7f6e1cf3d8c 100644 (file)
@@ -25,12 +25,6 @@ sub wrap {
        bless { mid => $mid }, $class;
 }
 
-sub get {
-       my ($class, $head, $db, $mid) = @_;
-       my $doc_id = $head->get_docid;
-       load_expand(wrap($class, $mid), $db->get_document($doc_id));
-}
-
 sub get_val ($$) {
        my ($doc, $col) = @_;
        Search::Xapian::sortable_unserialise($doc->get_value($col));