summaryrefslogtreecommitdiff
path: root/scripts/leaking_addresses.pl
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-11-08 03:04:27 +0300
committerTobin C. Harding <me@tobin.cc>2017-11-14 01:29:27 +0300
commitfa31a58202c5d9ebb26f562913b17e81357fe0e7 (patch)
tree2ed94624c1745043b203ea7364670c5cd6b458c6 /scripts/leaking_addresses.pl
parent7e5758f7f74a591b52c6e8a8cfe82e6288ddced0 (diff)
downloadlinux-fa31a58202c5d9ebb26f562913b17e81357fe0e7.tar.xz
leaking_addresses: remove dead/unused code
debug_arrays is not called. Also, %seen hash is not used. We should remove unused code. Remove dead code. Signed-off-by: Tobin C. Harding <me@tobin.cc>
Diffstat (limited to 'scripts/leaking_addresses.pl')
-rwxr-xr-xscripts/leaking_addresses.pl9
1 files changed, 0 insertions, 9 deletions
diff --git a/scripts/leaking_addresses.pl b/scripts/leaking_addresses.pl
index b64efcecbb5e..94b22d5b9237 100755
--- a/scripts/leaking_addresses.pl
+++ b/scripts/leaking_addresses.pl
@@ -133,14 +133,6 @@ walk(@DIRS);
exit 0;
-sub debug_arrays
-{
- print 'dirs_any: ' . join(", ", @skip_walk_dirs_any) . "\n";
- print 'dirs_abs: ' . join(", ", @skip_walk_dirs_abs) . "\n";
- print 'parse_any: ' . join(", ", @skip_parse_files_any) . "\n";
- print 'parse_abs: ' . join(", ", @skip_parse_files_abs) . "\n";
-}
-
sub dprint
{
printf(STDERR @_) if $debug;
@@ -281,7 +273,6 @@ sub skip_walk
sub walk
{
my @dirs = @_;
- my %seen;
while (my $pwd = shift @dirs) {
next if (skip_walk($pwd));