X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FView.pm;h=a08bbbf711d47c190df0788d0ced9008351f2ca6;hp=51ff5d41836048a9f8746f7d0b68ddda6afce221;hb=6680c772eaa987eafdb32e9437fd2d649dc914d9;hpb=a8dc76a1260561f17e6513a243473967582ed48a diff --git a/lib/Catalyst/View.pm b/lib/Catalyst/View.pm index 51ff5d4..a08bbbf 100644 --- a/lib/Catalyst/View.pm +++ b/lib/Catalyst/View.pm @@ -1,7 +1,7 @@ package Catalyst::View; -use strict; -use base qw/Catalyst::Component/; +use Moose; +extends qw/Catalyst::Component/; =head1 NAME @@ -52,22 +52,6 @@ Merges two hashes together recursively, giving right-hand precedence. =cut -sub merge_config_hashes { - my ( $self, $lefthash, $righthash ) = @_; - - my %merged = %$lefthash; - for my $key ( keys %$righthash ) { - my $right_ref = ( ref $righthash->{ $key } || '' ) eq 'HASH'; - my $left_ref = ( ( exists $lefthash->{ $key } && ref $lefthash->{ $key } ) || '' ) eq 'HASH'; - if( $right_ref and $left_ref ) { - $merged{ $key } = $self->merge_config_hashes( - $lefthash->{ $key }, $righthash->{ $key } - ); - } - } -} - - =head1 AUTHOR Sebastian Riedel, C @@ -80,4 +64,7 @@ the same terms as Perl itself. =cut +no Moose; +__PACKAGE__->meta->make_immutable(); + 1;