From: Dave Rolsky <autarch@urth.org>
Date: Sun, 4 Jul 2010 16:45:18 +0000 (-0500)
Subject: Remove totally unused chunk of code
X-Git-Tag: 1.09~57
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ddb7006c55f1b55555fdc46d7fc2f9766b90e56;p=gitmo%2FMoose.git

Remove totally unused chunk of code
---

diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm
index 7f99e0d..61188a7 100644
--- a/lib/Moose/Meta/Attribute.pm
+++ b/lib/Moose/Meta/Attribute.pm
@@ -437,12 +437,6 @@ sub _set_initial_slot_value {
     return $meta_instance->set_slot_value($instance, $slot_name, $value)
         unless $self->has_initializer;
 
-    my ($type_constraint, $can_coerce);
-    if ($self->has_type_constraint) {
-        $type_constraint = $self->type_constraint;
-        $can_coerce      = ($self->should_coerce && $type_constraint->has_coercion);
-    }
-
     my $callback = sub {
         my $val = $self->_coerce_and_verify( shift, $instance );;