From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BF73E2070D for ; Sat, 24 Dec 2016 11:52:45 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] view: remove unused parameter Date: Sat, 24 Dec 2016 11:52:41 +0000 Message-Id: <20161224115244.15402-2-e@80x24.org> In-Reply-To: <20161224115244.15402-1-e@80x24.org> References: <20161224115244.15402-1-e@80x24.org> List-Id: And add a comment about it to remind our future selves. --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index b779665..cf40b55 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -441,7 +441,7 @@ sub attach_link ($$$$;$) { sub add_text_body { my ($upfx, $p) = @_; # from msg_iter: [ Email::MIME, depth, @idx ] - my ($part, $depth, @idx) = @$p; + my ($part, $depth) = @$p; # attachment @idx is unused my $ct = $part->content_type || 'text/plain'; my $fn = $part->filename; -- EW