From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.8 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BFCED2044E for ; Wed, 6 Apr 2016 07:25:50 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] view: eliminate dead code and hash fields Date: Wed, 6 Apr 2016 07:25:50 +0000 Message-Id: <20160406072550.11511-1-e@80x24.org> List-Id: These were the vestigial remains of our previous use of of Message-ID compression. --- lib/PublicInbox/View.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index f074a24..2cf7e4f 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -464,8 +464,6 @@ sub thread_inline { seen => { $subj => 1 }, srch => $srch, cur => $mid, - parent_cmp => defined $parent ? $parent : '', - parent => $parent, prev_attr => '', prev_level => 0, }; @@ -474,7 +472,7 @@ sub thread_inline { } $$dst .= ""; # anchor for body start $ctx->{next_msg} = $state->{next_msg}; - $ctx->{parent_msg} = $state->{parent}; + $ctx->{parent_msg} = $parent; } sub _parent_headers_nosrch { @@ -811,9 +809,6 @@ sub inline_dump { if (my $mime = $node->message) { my $hdr = $mime->header_obj; my $mid = mid_clean($hdr->header_raw('Message-ID')); - if ($mid eq $state->{parent_cmp}) { - $state->{parent} = $mid; - } _inline_header($dst, $state, $upfx, $hdr, $level); } else { my $dot = $level == 0 ? '' : '` '; -- EW