From: Shawn M Moore Date: Mon, 17 Nov 2008 22:44:32 +0000 (+0000) Subject: Remove the make_immutable keyword, it's been deprecated and can break metaclasses X-Git-Tag: 0.62~27 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1089b4dd5458217fb23414a7b1b8148658ba9301;p=gitmo%2FMoose.git Remove the make_immutable keyword, it's been deprecated and can break metaclasses --- diff --git a/Changes b/Changes index e462290..0cfe49a 100644 --- a/Changes +++ b/Changes @@ -11,6 +11,10 @@ Revision history for Perl extension Moose - Catch another case where recursion caused the value of $CALLER to be stamped on (t0m) - added test for this (t0m) + * Moose + - Remove the make_immutable keyword, which has been + deprecated since April. It breaks metaclasses that + use Moose without no Moose (Sartak) 0.61 Fri November 7, 2008 * Moose::Meta::Attribute diff --git a/lib/Moose.pm b/lib/Moose.pm index a27ab64..040a719 100644 --- a/lib/Moose.pm +++ b/lib/Moose.pm @@ -124,16 +124,9 @@ sub augment { Class::MOP::Class->initialize($class)->add_augment_method_modifier( $name => $method ); } -sub make_immutable { - my $class = shift; - cluck "The make_immutable keyword has been deprecated, " . - "please go back to __PACKAGE__->meta->make_immutable\n"; - Class::MOP::Class->initialize($class)->make_immutable(@_); -} - Moose::Exporter->setup_import_methods( with_caller => [ - qw( extends with has before after around override augment make_immutable ) + qw( extends with has before after around override augment) ], as_is => [ qw( super inner ), diff --git a/t/010_basics/009_import_unimport.t b/t/010_basics/009_import_unimport.t index 776e3a2..08e0ced 100644 --- a/t/010_basics/009_import_unimport.t +++ b/t/010_basics/009_import_unimport.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 43; +use Test::More tests => 41; my @moose_exports = qw( @@ -13,7 +13,6 @@ my @moose_exports = qw( override augment super inner - make_immutable ); {