The function uniq is not used anywhere.
Earlier it was used to remove the duplicate messages, when the
--list-types option was used. But after 'commit 52178ce01335 ("checkpatch:
add verbose mode")', it is not used anymore. So remove it.
Signed-off-by: Utkarsh Verma <[email protected]>
---
scripts/checkpatch.pl | 5 -----
1 file changed, 5 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 461d4221e4a4..44fbc4617394 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -145,11 +145,6 @@ EOM
exit($exitcode);
}
-sub uniq {
- my %seen;
- return grep { !$seen{$_}++ } @_;
-}
-
sub list_types {
my ($exitcode) = @_;
--
2.25.1