Nilesh Patra pushed to branch master at lintian / lintian


Commits:
2a33f080 by Andrius Merkys at 2024-06-11T19:24:01+00:00
Drop unused semicolor counting code from 
lib/Lintian/Check/Files/SourceMissing.pm

- - - - -


1 changed file:

- lib/Lintian/Check/Files/SourceMissing.pm


Changes:

=====================================
lib/Lintian/Check/Files/SourceMissing.pm
=====================================
@@ -148,20 +148,17 @@ sub visit_patched_files {
 
     my @lines = split(/\n/, $item->bytes);
     my %line_length;
-    my %semicolon_count;
 
     my $position = 1;
     for my $line (@lines) {
 
         $line_length{$position} = length $line;
-        $semicolon_count{$position} = ($line =~ tr/;/;/);
 
     } continue {
         ++$position;
     }
 
     my $longest = max_by { $line_length{$_} } keys %line_length;
-    my $most = max_by { $semicolon_count{$_} } keys %semicolon_count;
 
     return
       if !defined $longest || $line_length{$longest} <= $VERY_LONG_LINE_LENGTH;



View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/2a33f080ef1aa87cedd248a2ff4d5548cc796f2a

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://salsa.debian.org/lintian/lintian/-/commit/2a33f080ef1aa87cedd248a2ff4d5548cc796f2a
You're receiving this email because of your account on salsa.debian.org.


Reply via email to