Skip to content

Commit

Permalink
Clean up: remove unused routine
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Pion committed Sep 26, 2023
1 parent ac4e26c commit e4fcdfb
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/Zonemaster/Engine/Nameserver/Cache.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ our %object_cache;
has 'data' => ( is => 'ro' );
has 'address' => ( is => 'ro' );

sub check_cache {
my ( $self, $cache ) = @_;

if ( $cache !~ /^LocalCache$/ ) {
warn "Unknown cache format '$cache', using default 'LocalCache'";
}
return "LocalCache";
}

sub get_cache_type {
my ( $class, $profile ) = @_;
my $cache_type = 'LocalCache';
Expand Down Expand Up @@ -77,11 +68,6 @@ A reference to a hash holding the cache of sent queries. Not meant for external
=over
=item check_cache($cache)
Returns a normalized string based on the supported cache format.
Emits a warning and retun "LocalCache" if the value is not LocalCache.
=item get_cache_type()
Get the cache type value, i.e. the name of the cache module to use.
Expand Down

0 comments on commit e4fcdfb

Please sign in to comment.