From: Dave Rolsky Date: Tue, 17 Mar 2009 15:50:48 +0000 (-0500) Subject: make CMOP::Method::Accessor->initialize_body private X-Git-Tag: 0.80_01~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e9497117f84bf41a21275cb7a0045b6e775a902e;p=gitmo%2FClass-MOP.git make CMOP::Method::Accessor->initialize_body private --- diff --git a/lib/Class/MOP/Method/Accessor.pm b/lib/Class/MOP/Method/Accessor.pm index 459078e..dcf5f32 100644 --- a/lib/Class/MOP/Method/Accessor.pm +++ b/lib/Class/MOP/Method/Accessor.pm @@ -36,7 +36,7 @@ sub new { # needed weaken($self->{'attribute'}); - $self->initialize_body; + $self->_initialize_body; return $self; } @@ -58,6 +58,12 @@ sub accessor_type { (shift)->{'accessor_type'} } ## factory sub initialize_body { + warn 'The initialize_body method has been made private.' + . " The public version is deprecated and will be removed in a future release.\n"; + goto &_initialize_body; +} + +sub _initialize_body { my $self = shift; my $method_name = join "_" => (