From: Dave Rolsky Date: Mon, 1 Sep 2008 16:21:00 +0000 (+0000) Subject: Remove references to X-Git-Tag: 0.56~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6cde92b3c52848f42ac20937fce0aebc3c5e2325;p=gitmo%2FMoose.git Remove references to Moose::Meta::Role::Application::ToMetaclassInstance which was obsoleted by MU::MetaRole. --- diff --git a/lib/Moose.pm b/lib/Moose.pm index 1426ef6..5b8306b 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -32,7 +32,6 @@ use Moose::Meta::Role::Application::RoleSummation; use Moose::Meta::Role::Application::ToClass; use Moose::Meta::Role::Application::ToRole; use Moose::Meta::Role::Application::ToInstance; -use Moose::Meta::Role::Application::ToMetaclassInstance; use Moose::Util::TypeConstraints; use Moose::Util (); @@ -279,7 +278,6 @@ $_->meta->make_immutable( Moose::Meta::Role::Application::ToClass Moose::Meta::Role::Application::ToRole Moose::Meta::Role::Application::ToInstance - Moose::Meta::Role::Application::ToMetaclassInstance )); 1; diff --git a/lib/Moose/Meta/Role.pm b/lib/Moose/Meta/Role.pm index e2ed536..dc9f561 100644 --- a/lib/Moose/Meta/Role.pm +++ b/lib/Moose/Meta/Role.pm @@ -466,16 +466,6 @@ sub apply { } } -sub apply_to_metaclass_instance { - my ($self, $meta, @args) = @_; - - $meta->isa('Moose::Meta::Class') || $meta->isa('Moose::Meta::Role') - || confess "You must pass in a Moose::Meta::Class or Moose::Meta::Role instance"; - - require Moose::Meta::Role::Application::ToMetaclassInstance; - return Moose::Meta::Role::Application::ToMetaclassInstance->new(@args)->apply($self, $meta); -} - sub combine { my ($class, @role_specs) = @_;