X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FAccessor.pm;h=16e24f5f17bd29ac2b743eb560c2db12ecfad9fd;hp=c4f7356e4f6bd8fdbc91bf930f09e1551b7631bc;hb=6e168432fa69bbe87ff0dd12e355a8b5d99a1a9c;hpb=d7d8d49b322c4d0f274aaafb049b324e1de6b552 diff --git a/lib/Mouse/Meta/Method/Accessor.pm b/lib/Mouse/Meta/Method/Accessor.pm index c4f7356..16e24f5 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"; @@ -175,7 +173,7 @@ Mouse::Meta::Method::Accessor - A Mouse method generator for accessors =head1 VERSION -This document describes Mouse version 0.40_01 +This document describes Mouse version 0.40_05 =head1 SEE ALSO