this argument is not needed
Tokuhiro Matsuno [Thu, 4 Dec 2008 23:54:02 +0000 (23:54 +0000)]
lib/Mouse/Meta/Attribute.pm

index 1b21446..479c43c 100644 (file)
@@ -301,7 +301,7 @@ sub find_type_constraint {
 
     return unless $type;
 
-    my $checker = Mouse::TypeRegistry->optimized_constraints($self->associated_class->name)->{$type};
+    my $checker = Mouse::TypeRegistry->optimized_constraints()->{$type};
     return $checker if $checker;
 
     return sub { Mouse::Util::blessed($_) && Mouse::Util::blessed($_) eq $type };