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 Nov 2, 2023
1 parent 4ab0aaf commit 2974ebc
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions lib/Zonemaster/CLI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use 5.014002;
use strict;
use warnings;

use version; our $VERSION = version->declare( "v6.1.0" );
use version; our $VERSION = version->declare( "v6.0.3" );

use Locale::TextDomain 'Zonemaster-CLI';
use Moose;
Expand Down 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 2974ebc

Please sign in to comment.