From: gfx Date: Tue, 27 Oct 2009 04:08:49 +0000 (+0900) Subject: Compat for Moose X-Git-Tag: 0.40_02~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9d9e802699d6a794643fd050f2397cb23d630353;p=gitmo%2FMouse.git Compat for Moose --- diff --git a/lib/Mouse/Meta/Method/Accessor.pm b/lib/Mouse/Meta/Method/Accessor.pm index c4f7356..04fd6b8 100755 --- a/lib/Mouse/Meta/Method/Accessor.pm +++ b/lib/Mouse/Meta/Method/Accessor.pm @@ -97,8 +97,6 @@ sub _generate_accessor{ } elsif(defined $constraint){ $accessor .= "my \$tmp = $value;\n"; - #XXX: The following 'defined and' check is for backward compatibility - $accessor .= "defined(\$tmp) and "; $accessor .= "\$compiled_type_constraint->(\$tmp)"; $accessor .= " || \$attribute->verify_type_constraint_error(\$name, \$tmp, \$constraint);\n";