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>

Ian Kelling committed Sep 24, 2016 at 15:32 UTC c151aa3b58c952899531aa52e64d76b50fb52e62
1 file changed +2 -2
gitweb/gitweb.perl
+2 -2
@@ -3913,7 +3913,7 @@ sub blob_contenttype {
3913 # guess file syntax for syntax highlighting; return undef if no highlighting
3914 # the name of syntax can (in the future) depend on syntax highlighter used
3915 sub guess_file_syntax {
3916 - my ($highlight, $mimetype, $file_name) = @_;
3916 + my ($highlight, $file_name) = @_;
3917 return undef unless ($highlight && defined $file_name);
3918 my $basename = basename($file_name, '.in');
3919 return $highlight_basename{$basename}
@@ -7062,7 +7062,7 @@ sub git_blob {
7062 $have_blame &&= ($mimetype =~ m!^text/!);
7063
7064 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);
7066 $fd = run_highlighter($fd, $highlight, $syntax)
7067 if $syntax;
7068