X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FTypeConstraint.pm;h=5650c253c7a79e3e572f0229eb2253c16f219d44;hp=6be61f69027cc4ae844cca989ee61c7c323fe6d2;hb=7fc19c3fe6c387eea8d5275aa830b3a43016fabc;hpb=70425827d676b2b4130f5e78689bf017fe4c4609 diff --git a/lib/Mouse/Meta/TypeConstraint.pm b/lib/Mouse/Meta/TypeConstraint.pm index 6be61f6..5650c25 100644 --- a/lib/Mouse/Meta/TypeConstraint.pm +++ b/lib/Mouse/Meta/TypeConstraint.pm @@ -35,8 +35,6 @@ sub new { Carp::confess("Constraint for $args{name} is not a CODE reference"); } - $args{package_defined_in} ||= caller; - my $self = bless \%args, $class; $self->compile_type_constraint() if !$self->{hand_optimized_type_constraint};