X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FRole%2FApplication.pm;h=ae8d4e9f95147712cb778b382e5f14b1ca32274c;hb=0c3879e855fa83153b432144307fb0e8b7e8d595;hp=c8f352d016b6a20de0383b311c8650d6e01afce3;hpb=16db8ee65fcdf2a4d44a08457202e05f42826515;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Role/Application.pm b/lib/Moose/Meta/Role/Application.pm index c8f352d..ae8d4e9 100644 --- a/lib/Moose/Meta/Role/Application.pm +++ b/lib/Moose/Meta/Role/Application.pm @@ -4,7 +4,7 @@ use strict; use warnings; use metaclass; -our $VERSION = '1.07'; +our $VERSION = '1.25'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -22,24 +22,6 @@ __PACKAGE__->meta->add_attribute('method_aliases' => ( sub new { my ($class, %params) = @_; - - if ( exists $params{excludes} && !exists $params{'-excludes'} ) { - $params{'-excludes'} = delete $params{excludes}; - } - if ( exists $params{alias} && !exists $params{'-alias'} ) { - $params{'-alias'} = delete $params{alias}; - } - - if ( exists $params{'-excludes'} ) { - - # I wish we had coercion here :) - $params{'-excludes'} = ( - ref $params{'-excludes'} eq 'ARRAY' - ? $params{'-excludes'} - : [ $params{'-excludes'} ] - ); - } - $class->_new(\%params); }