Skip to content

Commit c151aa3

Browse files
ian-kellinggitster
authored andcommitted
gitweb: remove unused guess_file_syntax() parameter
Signed-off-by: Ian Kelling <ian@iankelling.org> Acked-by: Jakub Narębski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6fe1b14 commit c151aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3913,7 +3913,7 @@ sub blob_contenttype {
39133913
# guess file syntax for syntax highlighting; return undef if no highlighting
39143914
# the name of syntax can (in the future) depend on syntax highlighter used
39153915
sub guess_file_syntax {
3916-
my ($highlight, $mimetype, $file_name) = @_;
3916+
my ($highlight, $file_name) = @_;
39173917
return undef unless ($highlight && defined $file_name);
39183918
my $basename = basename($file_name, '.in');
39193919
return $highlight_basename{$basename}
@@ -7062,7 +7062,7 @@ sub git_blob {
70627062
$have_blame &&= ($mimetype =~ m!^text/!);
70637063

70647064
my $highlight = gitweb_check_feature('highlight');
7065-
my $syntax = guess_file_syntax($highlight, $mimetype, $file_name);
7065+
my $syntax = guess_file_syntax($highlight, $file_name);
70667066
$fd = run_highlighter($fd, $highlight, $syntax)
70677067
if $syntax;
70687068

0 commit comments

Comments
 (0)