Remove _coerce_and_verify method, which is no longer used
Fuji, Goro [Sat, 25 Sep 2010 09:39:43 +0000 (18:39 +0900)]
lib/Mouse/Meta/Attribute.pm

index 80a702f..cd2512d 100644 (file)
@@ -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) = @_;