Skip to contentSkip to conversation

checkpatch: remove unused function uniq

PATCH New Utkarsh Verma 1 participant 1 message Sep 7, 2021 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: remove unused function uniq

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.

---
 scripts/checkpatch.pl | 5 -----
 1 file changed, 5 deletions(-)
scripts/checkpatch.pl +0 -5
index 461d4221e4a4..44fbc4617394 100755
@@ -145,11 +145,6 @@ EOM
 	exit($exitcode);
 }
 
-sub uniq {
-	my %seen;
-	return grep { !$seen{$_}++ } @_;
-}
-
 sub list_types {
 	my ($exitcode) = @_;
 
Signature · 1 line
2.25.1