X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FModule.pm;h=65f87361edcb7e85fcb928aa97c8eea20c3c036c;hp=8a4ccb9fc660f4fbc2134d24dd51b21ec0672846;hb=e9148d131f7c3d6a1e3fc9e7c491f80fb5dde90b;hpb=39a8df6342dd38b9e489f25ed48d9c3d79e1e288 diff --git a/lib/Mouse/Meta/Module.pm b/lib/Mouse/Meta/Module.pm index 8a4ccb9..65f8736 100755 --- a/lib/Mouse/Meta/Module.pm +++ b/lib/Mouse/Meta/Module.pm @@ -6,8 +6,7 @@ use Scalar::Util (); my %METAS; -# XXX: work around a warning "useless use of a constant in void context" in 5.6.2 -if(&Mouse::Util::MOUSE_XS){ +if(Mouse::Util::MOUSE_XS){ # register meta storage for performance Mouse::Util::__register_metaclass_storage(\%METAS, 0); @@ -17,6 +16,7 @@ if(&Mouse::Util::MOUSE_XS){ sub _metaclass_cache { # DEPRECATED my($class, $name) = @_; + Carp::cluck('_metaclass_cache() has been deprecated. Use Mouse::Util::get_metaclass_by_name() instead'); return $METAS{$name}; } @@ -79,7 +79,7 @@ sub namespace; # add_attribute is an abstract method sub get_attribute_map { # DEPRECATED - Carp::cluck('get_attribute_map() has been deprecated'); + Carp::cluck('get_attribute_map() has been deprecated. Use get_attribute_list() and get_attribute() instead'); return $_[0]->{attributes}; } @@ -89,7 +89,6 @@ sub remove_attribute { delete $_[0]->{attributes}->{$_[1]} } sub get_attribute_list{ keys %{$_[0]->{attributes}} } - # XXX: for backward compatibility my %foreign = map{ $_ => undef } qw( Mouse Mouse::Role Mouse::Util Mouse::Util::TypeConstraints @@ -304,7 +303,6 @@ sub throw_error{ } 1; - __END__ =head1 NAME @@ -313,7 +311,7 @@ Mouse::Meta::Module - The base class for Mouse::Meta::Class and Mouse::Meta::Rol =head1 VERSION -This document describes Mouse version 0.40_08 +This document describes Mouse version 0.50 =head1 SEE ALSO