user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] view: eliminate dead code and hash fields
@ 2016-04-06  7:25  7% Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-04-06  7:25 UTC (permalink / raw)
  To: meta

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 .= "<a\nid=b></a>"; # 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


^ permalink raw reply related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-04-06  7:25  7% [PATCH] view: eliminate dead code and hash fields Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).