]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: remove unused parameter
authorEric Wong <e@80x24.org>
Sat, 24 Dec 2016 11:52:41 +0000 (11:52 +0000)
committerEric Wong <e@80x24.org>
Sat, 24 Dec 2016 19:40:59 +0000 (19:40 +0000)
And add a comment about it to remind our future selves.

lib/PublicInbox/View.pm

index b77966514b85448755d8283bfc22f8eb8be7f62f..cf40b55572a3ec71e6a6154bd30768d98479126e 100644 (file)
@@ -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;