From: Jesse Luehrs Date: Sat, 7 May 2011 18:03:13 +0000 (-0500) Subject: overriding new isn't necessary when using mx-nonmoose X-Git-Tag: 2.0100~128 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6501c6f5d2604ebb0aa98393303dd11613c943b8;p=gitmo%2FMoose.git overriding new isn't necessary when using mx-nonmoose --- diff --git a/lib/Moose/Cookbook/Basics/Recipe11.pod b/lib/Moose/Cookbook/Basics/Recipe11.pod index 6fcd3b1..e64902e 100644 --- a/lib/Moose/Cookbook/Basics/Recipe11.pod +++ b/lib/Moose/Cookbook/Basics/Recipe11.pod @@ -35,17 +35,6 @@ use Test::Requires { predicate => 'has_mayan_date', ); - sub new { - my $class = shift; - - my $obj = $class->SUPER::new(@_); - - return $class->meta->new_object( - __INSTANCE__ => $obj, - @_, - ); - } - after 'set' => sub { $_[0]->_clear_mayan_date; };