]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repobrowse: remove unused params in git commit view
authorEric Wong <e@80x24.org>
Sat, 12 Mar 2016 00:23:33 +0000 (00:23 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Apr 2016 18:58:27 +0000 (18:58 +0000)
No point in wasting stack space for that.

lib/PublicInbox/RepobrowseGitCommit.pm

index 156e3e22236ea60f33b3d6a1eca5453c0fcc0c2a..7d8a08439fe928dbd1df16a58a184bdd2bf7c5af 100644 (file)
@@ -90,7 +90,7 @@ sub git_commit_stream {
        chomp $l;
        $fh->write(utf8_html($l)."<a\nid=D>---</a>\n");
        my $diff = { anchors => {}, h => $h, p => \@p, rel => $rel };
-       git_show_diffstat($diff, $req, $h, $fh, $log);
+       git_show_diffstat($diff, $req, $fh, $log);
        my $help;
        $help = " This is a merge, showing combined diff:\n\n" if ($np > 1);
 
@@ -196,7 +196,7 @@ sub git_commit_404 {
 }
 
 sub git_show_diffstat {
-       my ($diff, $req, $h, $fh, $log) = @_;
+       my ($diff, $req, $fh, $log) = @_;
        local $/ = "\0\0";
        my $l = <$log>;
        chomp $l;
@@ -221,7 +221,7 @@ sub git_show_diffstat {
                } else {
                        my $from = shift @stat;
                        my $to = shift @stat;
-                       $l = git_diffstat_rename($diff, $h, $from, $to);
+                       $l = git_diffstat_rename($diff, $from, $to);
                }
                ++$nr;
                $fh->write(' '.$num."\t".$l."\n");
@@ -361,7 +361,7 @@ sub git_diff_cc_hunk {
 }
 
 sub git_diffstat_rename {
-       my ($diff, $h, $from, $to) = @_;
+       my ($diff, $from, $to) = @_;
        my $anchor = to_attr(git_unquote($to));
        $diff->{anchors}->{$anchor} = $to;
        my @from = split('/', $from);