Skip to content

Commit

Permalink
mxmirror: Remove dead code (sub check_a)
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 13, 2019
1 parent 2444ecd commit a49733f
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions mxmirror/mxmirror
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,6 @@ my $hostip = inet_ntoa(scalar gethostbyname($fullhostname));
my $jbodmap = read_jbodmap($JBODMAP);
my $mirrors = read_mirrormap($MIRRORMAP);

sub check_a {
my $a = shift;
my $href = shift || {};

return if(exists $href->{$a->{name}});

# printf "checking $a->{name} .. \n";

$href->{$a->{name}} = 1;

foreach(@{$a->{destinations}}, @{$a->{sources}}) {
next if(exists $href->{$_->{name}});
check_a($_, $href);
}



return sort keys %$href;

}

my $result = GetOptions(
"from:s" => \$opt{from},
"to:s" => \$opt{to},
Expand Down

0 comments on commit a49733f

Please sign in to comment.