Skip to content

Commit

Permalink
gitweb: Get rid of git_print_simplified_log
Browse files Browse the repository at this point in the history
Replace calls to git_print_simplified_log with its expansion,
i.e. with calling git_print_log with appropriate options.

Remove no longer used git_print_simplified_log subroutine.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jakub Narebski authored and Junio C Hamano committed Oct 25, 2006
1 parent 447ef09 commit f206941
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1776,15 +1776,6 @@ ($;%)
}
}

sub git_print_simplified_log {
my $log = shift;
my $remove_title = shift;

git_print_log($log,
-final_empty_line=> 1,
-remove_title => $remove_title);
}

# print tree entry (row of git_tree), but without encompassing <tr> element
sub git_print_tree_entry {
my ($t, $basedir, $hash_base, $have_blame) = @_;
Expand Down Expand Up @@ -3101,7 +3092,7 @@ sub git_log {
"</div>\n";

print "<div class=\"log_body\">\n";
git_print_simplified_log($co{'comment'});
git_print_log($co{'comment'}, -final_empty_line=> 1);
print "</div>\n";
}
git_footer_html();
Expand Down Expand Up @@ -3433,7 +3424,7 @@ sub git_commitdiff {
git_print_authorship(\%co);
print "<div class=\"page_body\">\n";
print "<div class=\"log\">\n";
git_print_simplified_log($co{'comment'}, 1); # skip title
git_print_log($co{'comment'}, -final_empty_line=> 1, -remove_title => 1);
print "</div>\n"; # class="log"

} elsif ($format eq 'plain') {
Expand Down

0 comments on commit f206941

Please sign in to comment.