From: Dave Rolsky Date: Thu, 19 Aug 2010 04:38:27 +0000 (+0200) Subject: Use _get_local_methods instead of recreating methods over and over X-Git-Tag: 1.10~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=01839bb8436ff7acbc49128728f5af2bd2f47135;p=gitmo%2FMoose.git Use _get_local_methods instead of recreating methods over and over --- diff --git a/lib/Moose/Meta/Attribute/Native/Trait.pm b/lib/Moose/Meta/Attribute/Native/Trait.pm index 64c3823..b6c6eb6 100644 --- a/lib/Moose/Meta/Attribute/Native/Trait.pm +++ b/lib/Moose/Meta/Attribute/Native/Trait.pm @@ -28,8 +28,8 @@ has 'method_constructors' => ( my $method_provider = $self->method_provider->meta; return +{ map { - $_ => $method_provider->get_method($_) - } $method_provider->get_method_list + $_->name => $_ + } $method_provider->_get_local_methods }; }, );