From: Tokuhiro Matsuno Date: Thu, 4 Dec 2008 23:54:02 +0000 (+0000) Subject: this argument is not needed X-Git-Tag: 0.19~136^2~36 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=32f938671d5d4b332348a306b7a01a5e7759d99a this argument is not needed --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 1b21446..479c43c 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -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 };