* [PATCH] checkpatch: remove unused function uniq
@ 2021-09-07 11:03 Utkarsh Verma
0 siblings, 0 replies; only message in thread
From: Utkarsh Verma @ 2021-09-07 11:03 UTC (permalink / raw)
To: Andy Whitcroft
Cc: Joe Perches, Dwaipayan Ray, Lukas Bulwahn, linux-kernel, Utkarsh Verma
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 <utkarshverma294@gmail.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-07 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07 11:03 [PATCH] checkpatch: remove unused function uniq Utkarsh Verma
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.