From: gfx Date: Wed, 30 Sep 2009 11:38:30 +0000 (+0900) Subject: Remove debugging code X-Git-Tag: 0.37_01~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9561101934279716806723e80517866d71c3a0c7;hp=e763d56e2b18480328a95cbbe9e9b58988a8c4dc;p=gitmo%2FMouse.git Remove debugging code --- diff --git a/lib/Mouse/Util/TypeConstraints.pm b/lib/Mouse/Util/TypeConstraints.pm index 9705b71..ce292dd 100644 --- a/lib/Mouse/Util/TypeConstraints.pm +++ b/lib/Mouse/Util/TypeConstraints.pm @@ -11,8 +11,6 @@ use Mouse::Util qw(does_role not_supported); use Mouse::Meta::Module; # class_of use Mouse::Meta::TypeConstraint; -use constant _DEBUG => !!$ENV{TC_DEBUG}; - our @ISA = qw(Exporter); our @EXPORT = qw( as where message from via type subtype coerce class_type role_type enum @@ -244,8 +242,6 @@ sub _find_or_create_regular_type{ $type = 'Class'; } - warn "#CREATE a $type type for $spec\n" if _DEBUG; - return $TYPE{$spec} = Mouse::Meta::TypeConstraint->new( name => $spec, optimized => $check, @@ -293,8 +289,6 @@ sub _find_or_create_parameterized_type{ my $name = sprintf '%s[%s]', $base->name, $param->name; $TYPE{$name} ||= do{ - warn "#CREATE a Parameterized type for $name\n" if _DEBUG; - my $generator = $base->{constraint_generator}; if(!$generator){ @@ -316,8 +310,6 @@ sub _find_or_create_union_type{ my $name = join '|', map{ $_->name } @types; $TYPE{$name} ||= do{ - warn "# CREATE a Union type for ", Mouse::Util::english_list(@types),"\n" if _DEBUG; - return Mouse::Meta::TypeConstraint->new( name => $name, type_constraints => \@types,