]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: remove "subject dummy" references
authorEric Wong <e@80x24.org>
Wed, 5 Oct 2016 23:47:16 +0000 (23:47 +0000)
committerEric Wong <e@80x24.org>
Wed, 5 Oct 2016 23:52:02 +0000 (23:52 +0000)
We will not care for inexact threading by subject or pruning.

lib/PublicInbox/View.pm

index 93592097353eef0aa045b049673244adb527bdcc..a3b26814f6897db2268124f29365abae495433de 100644 (file)
@@ -723,8 +723,6 @@ sub anchor_for {
 
 sub ghost_parent {
        my ($upfx, $mid) = @_;
-       # 'subject dummy' is used internally by Mail::Thread
-       return '[no common parent]' if ($mid eq 'subject dummy');
 
        $mid = PublicInbox::Hval->new_msgid($mid);
        my $href = $mid->{href};
@@ -838,12 +836,6 @@ sub skel_dump {
                my $dst = $ctx->{dst};
                my $mapping = $ctx->{mapping};
                my $map = $mapping->{$mid} if $mapping;
-               if ($mid eq 'subject dummy') {
-                       my $ncp = "\t[no common parent]\n";
-                       $map->[1] = $ncp if $map;
-                       $$dst .= $ncp;
-                       return;
-               }
                my $d = $ctx->{pct} ? '    [irrelevant] ' # search result
                                    : '     [not found] ';
                $d .= indent_for($level) . th_pfx($level);