From: Shawn M Moore Date: Tue, 9 Dec 2008 03:04:35 +0000 (+0000) Subject: More tweaks X-Git-Tag: 0.19~127 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4d5249cfe07046e7c8c6bbbecb97af544812ce1;p=gitmo%2FMouse.git More tweaks --- diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index 0df3eab..83bf3ef 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -5,7 +5,7 @@ use warnings; sub generate_constructor_method_inline { my ($class, $meta) = @_; - my @attrs = $meta->compute_all_applicable_attributes; # this one is using by evaled code + my @attrs = $meta->compute_all_applicable_attributes; my $buildall = $class->_generate_BUILDALL($meta); my $buildargs = $class->_generate_BUILDARGS(); my $processattrs = $class->_generate_processattrs($meta, \@attrs); @@ -21,8 +21,6 @@ sub generate_constructor_method_inline { } ... - warn $code if $ENV{DEBUG}; - local $@; my $res = eval $code; die $@ if $@; diff --git a/lib/Mouse/Meta/Method/Destructor.pm b/lib/Mouse/Meta/Method/Destructor.pm index bdcbe1f..904b413 100644 --- a/lib/Mouse/Meta/Method/Destructor.pm +++ b/lib/Mouse/Meta/Method/Destructor.pm @@ -26,7 +26,6 @@ sub generate_destructor_method_inline { $demolishall; } ... - warn $code if $ENV{DEBUG}; local $@; my $res = eval $code;