Skip to content

Commit

Permalink
Remove unused Zonemaster::CLI::to_idn() method
Browse files Browse the repository at this point in the history
This is no longer needed following the switch to Zonemaster::Engine::Normalization.
  • Loading branch information
tgreenx committed Oct 18, 2023
1 parent 4ab0aaf commit 0c8093e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/Zonemaster/CLI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -821,22 +821,6 @@ sub print_spinner {
return;
}

sub to_idn {
my ( $self, $str ) = @_;

if ( $str =~ m/^[[:ascii:]]+$/ ) {
return $str;
}

if ( Zonemaster::LDNS::has_idn() ) {
return Zonemaster::LDNS::to_idn( decode( $self->encoding, $str ) );
}
else {
say STDERR __( "Warning: Zonemaster::LDNS not compiled with IDN support, cannot handle non-ASCII names correctly." );
return $str;
}
}

sub print_test_list {
my %methods = Zonemaster::Engine->all_methods;
my $maxlen = max map {
Expand Down

0 comments on commit 0c8093e

Please sign in to comment.