From: Dave Rolsky Date: Wed, 27 Aug 2008 16:29:02 +0000 (+0000) Subject: No need to remove the metaclass when we're calling reinitialize X-Git-Tag: 0.55_04~2^2~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b81ee9058cd936daace18ee84da80ce99346afed;p=gitmo%2FMoose.git No need to remove the metaclass when we're calling reinitialize --- diff --git a/lib/Moose/Util/MetaRole.pm b/lib/Moose/Util/MetaRole.pm index 5c61939..f0b53c4 100644 --- a/lib/Moose/Util/MetaRole.pm +++ b/lib/Moose/Util/MetaRole.pm @@ -44,8 +44,6 @@ sub _make_new_metaclass { my $old_meta = $for->meta(); - Class::MOP::remove_metaclass_by_name($for); - # This could get called for a Moose::Meta::Role as well as a Moose::Meta::Class my %classes = map { $_ => _make_new_class( $old_meta->$_(), $options->{ $_ . '_roles' } )