From: Dave Rolsky Date: Mon, 1 Aug 2011 15:02:47 +0000 (-0500) Subject: Remove deprecation warning for CMOP::load_class ... X-Git-Tag: 2.0300~85 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c7fce1821d0461e4e867366131e77b0047026412;p=gitmo%2FMoose.git Remove deprecation warning for CMOP::load_class & friends, but mention that they've been removed from the docs in Changes --- diff --git a/Changes b/Changes index 3a44194..683d862 100644 --- a/Changes +++ b/Changes @@ -34,13 +34,12 @@ for, noteworthy changes. * The optimize_as option for type constraints has been deprecated. Use the inline_as option to provide inlining code instead. (Dave Rolsky) - * The Class::MOP::load_class and Class::MOP::is_class_loaded subroutines are - now deprecated. Moose now uses Class::Load to provide this functionality, - and you should as well. (Dave Rolsky) + [OTHER] - * The Class::MOP::load_first_existing_class subroutine is also - deprecated. This was removed from the docs a long time ago, but has never - actually been deprecated. (Dave Rolsky) + * The Class::MOP::load_class and Class::MOP::is_class_loaded subroutines are + no longer documented, and will cause a deprecation warning in the + future. Moose now uses Class::Load to provide this functionality, and you + should as well. (Dave Rolsky) 2.0204 Thu, Aug 25, 2011 diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index 54bbd37..2ed4e18 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -68,23 +68,14 @@ XSLoader::load( } sub load_class { - Class::MOP::Deprecated::deprecated( - 'The Class::MOP::load_class subroutine is deprecated.' - . ' Please use Class::Load instead.' ); goto &Class::Load::load_class; } sub load_first_existing_class { - Class::MOP::Deprecated::deprecated( - 'The Class::MOP::load_first_existing_class subroutine is deprecated.' - . ' Please use Class::Load instead.' ); goto &Class::Load::load_first_existing_class; } sub is_class_loaded { - Class::MOP::Deprecated::deprecated( - 'The Class::MOP::is_class_loaded subroutine is deprecated.' - . ' Please use Class::Load instead.' ); goto &Class::Load::is_class_loaded; } diff --git a/lib/Class/MOP/Deprecated.pm b/lib/Class/MOP/Deprecated.pm index 1ae1f61..a2a34e0 100644 --- a/lib/Class/MOP/Deprecated.pm +++ b/lib/Class/MOP/Deprecated.pm @@ -4,9 +4,6 @@ use strict; use warnings; use Package::DeprecationManager -deprecations => { - 'Class::MOP::load_class' => '2.0200', - 'Class::MOP::load_first_existing_class' => '2.0200', - 'Class::MOP::is_class_loaded' => '2.0200', }; 1; diff --git a/lib/Moose/Manual/Delta.pod b/lib/Moose/Manual/Delta.pod index 6e8b0cb..8dffcc1 100644 --- a/lib/Moose/Manual/Delta.pod +++ b/lib/Moose/Manual/Delta.pod @@ -38,16 +38,6 @@ The Array and Hash native traits now provide a "shallow_clone" method, which will return a reference to a new container with the same contents as the attribute's reference. -=item C and C are deprecated - -We now use the L module internally to provide this -functionality. Using the Class::MOP subroutines will cause a deprecation -warning, but will still work (via L sub has been -deprecated. This was removed from the docs a long time ago, but has never -actually warned. - =back =head1 2.0100