X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FMOP%2FMethod%2FConstructor.pm;h=b4f3f0fd503a3627d8243fd0b6820fbbdbfffff8;hb=06ea51c77e19bd6d13206e4a5423cf5cd5108267;hp=c1ac2b38b6a6daff3ca4c0099d10cdfce3750cee;hpb=812d58f9517c19217fd09da63a6a87d80c202f11;p=gitmo%2FClass-MOP.git diff --git a/lib/Class/MOP/Method/Constructor.pm b/lib/Class/MOP/Method/Constructor.pm index c1ac2b3..b4f3f0f 100644 --- a/lib/Class/MOP/Method/Constructor.pm +++ b/lib/Class/MOP/Method/Constructor.pm @@ -7,7 +7,7 @@ use warnings; use Carp 'confess'; use Scalar::Util 'blessed', 'weaken', 'looks_like_number'; -our $VERSION = '0.89'; +our $VERSION = '1.01'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -72,24 +72,11 @@ sub associated_metaclass { (shift)->{'associated_metaclass'} } ## cached values ... -sub meta_instance { - Carp::cluck('The meta_instance method has been made private.' - . " The public version is deprecated and will be removed in a future release.\n"); - shift->_meta_instance; -} - sub _meta_instance { my $self = shift; $self->{'meta_instance'} ||= $self->associated_metaclass->get_meta_instance; } -sub attributes { - Carp::cluck('The attributes method has been made private.' - . " The public version is deprecated and will be removed in a future release.\n"); - - return shift->_attributes; -} - sub _attributes { my $self = shift; $self->{'attributes'} ||= [ $self->associated_metaclass->get_all_attributes ] @@ -97,12 +84,6 @@ sub _attributes { ## method -sub initialize_body { - Carp::cluck('The initialize_body method has been made private.' - . " The public version is deprecated and will be removed in a future release.\n"); - shift->_initialize_body; -} - sub _initialize_body { my $self = shift; my $method_name = '_generate_constructor_method'; @@ -112,22 +93,10 @@ sub _initialize_body { $self->{'body'} = $self->$method_name; } -sub generate_constructor_method { - Carp::cluck('The generate_constructor_method method has been made private.' - . " The public version is deprecated and will be removed in a future release.\n"); - shift->_generate_constructor_method; -} - sub _generate_constructor_method { return sub { Class::MOP::Class->initialize(shift)->new_object(@_) } } -sub generate_constructor_method_inline { - Carp::cluck('The generate_constructor_method_inline method has been made private.' - . " The public version is deprecated and will be removed in a future release.\n"); - shift->_generate_constructor_method_inline; -} - sub _generate_constructor_method_inline { my $self = shift; @@ -287,7 +256,7 @@ Stevan Little Estevan@iinteractive.comE =head1 COPYRIGHT AND LICENSE -Copyright 2006-2009 by Infinity Interactive, Inc. +Copyright 2006-2010 by Infinity Interactive, Inc. L