diff --git a/lib/Dancer2/ConfigReader.pm b/lib/Dancer2/ConfigReader.pm index 2d77b89c6..273400b3e 100644 --- a/lib/Dancer2/ConfigReader.pm +++ b/lib/Dancer2/ConfigReader.pm @@ -63,7 +63,6 @@ has environment => ( has config_readers => ( is => 'ro', lazy => 1, - #isa => ArrayRef[ InstanceOf['Dancer2::Core::Role::ConfigReader'] ], isa => ArrayRef, builder => '_build_config_readers', ); @@ -73,7 +72,6 @@ sub _build_config { my ($self) = @_; my $default = $self->default_config; - use Data::Dumper; my $config = Hash::Merge::Simple->merge( $default, map { diff --git a/lib/Dancer2/Core/App.pm b/lib/Dancer2/Core/App.pm index 7bab282f2..6e242bda4 100644 --- a/lib/Dancer2/Core/App.pm +++ b/lib/Dancer2/Core/App.pm @@ -445,17 +445,6 @@ sub _build_config { return $config; } -# around _build_config => sub { -# my ( $orig, $self ) = @_; -# my $config = $self->$orig; -# -# if ( $config && $config->{'engines'} ) { -# $self->_validate_engine($_) for keys %{ $config->{'engines'} }; -# } -# -# return $config; -# }; - sub _build_response { my $self = shift; return Dancer2::Core::Response->new( diff --git a/lib/Dancer2/Core/Role/HasConfig.pm b/lib/Dancer2/Core/Role/HasConfig.pm index 50eb084e0..f506396f6 100644 --- a/lib/Dancer2/Core/Role/HasConfig.pm +++ b/lib/Dancer2/Core/Role/HasConfig.pm @@ -77,18 +77,6 @@ sub _set_config_entry { $self->config->{$name} = $value; } -# Who calls this method? -# sub _compile_config { -# my ( $self, $config ) = @_; -# -# foreach my $key ( keys %{$config} ) { -# my $value = $config->{$key}; -# $config->{$key} = -# $self->_compile_config_entry( $key, $value, $config ); -# } -# return $config; -# } - sub settings { shift->config } sub setting {