From: gfx Date: Mon, 22 Feb 2010 06:14:44 +0000 (+0900) Subject: Don't set package_defined_in automatically, because Moose doesn't do that. X-Git-Tag: 0.50_03~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7fc19c3fe6c387eea8d5275aa830b3a43016fabc;p=gitmo%2FMouse.git Don't set package_defined_in automatically, because Moose doesn't do that. --- 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};