Moved even more code up to Native/Writer
[gitmo/Moose.git] / lib / Moose / Meta / Method / Accessor / Native / Array / Writer.pm
index fe22c03..ab4c7f4 100644 (file)
@@ -37,16 +37,6 @@ sub _inline_tc_code {
     }
 }
 
-sub _constraint_must_be_checked {
-    my $self = shift;
-
-    my $attr = $self->associated_attribute;
-
-    return $attr->has_type_constraint
-        && ( $attr->type_constraint->name ne 'ArrayRef'
-        || ( $attr->should_coerce && $attr->type_constraint->has_coercion ) );
-}
-
 sub _check_new_members_only {
     my $self = shift;
 
@@ -83,17 +73,6 @@ sub _inline_check_member_constraint {
         ) . " for $new_value;";
 }
 
-sub _inline_check_coercion {
-    my ( $self, $value ) = @_;
-
-    my $attr = $self->associated_attribute;
-
-    return ''
-        unless $attr->should_coerce && $attr->type_constraint->has_coercion;
-
-    return "$value = \$type_constraint_obj->coerce($value);";
-}
-
 sub _inline_check_constraint {
     my $self = shift;