checkpatch: remove unused function uniq
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.
Signed-off-by Utkarsh Verma <[email protected]>
--- scripts/checkpatch.pl | 5 ----- 1 file changed, 5 deletions(-)
scripts/checkpatch.pl +0 -5
@@ -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