From: Fuji, Goro Date: Sat, 25 Sep 2010 09:39:43 +0000 (+0900) Subject: Remove _coerce_and_verify method, which is no longer used X-Git-Tag: 0.72~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8314965b1f3eb516ef3e7a11ff1227fa1c38aacc;p=gitmo%2FMouse.git Remove _coerce_and_verify method, which is no longer used --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 80a702f..cd2512d 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -137,22 +137,6 @@ sub interpolate_class{ return( $class, @traits ); } -sub _coerce_and_verify { - #my($self, $value, $instance) = @_; - my($self, $value) = @_; - - my $type_constraint = $self->{type_constraint}; - return $value if !defined $type_constraint; - - if ($self->should_coerce && $type_constraint->has_coercion) { - $value = $type_constraint->coerce($value); - } - - $self->verify_against_type_constraint($value); - - return $value; -} - sub verify_against_type_constraint { my ($self, $value) = @_;