We are never going to make a destructor object and then find out it
Dave Rolsky [Sat, 21 Mar 2009 15:13:29 +0000 (10:13 -0500)]
isn't needed, because we already check if it's needed before making
it!

lib/Class/MOP/Immutable.pm

index 076fbab..41fa4ea 100644 (file)
@@ -183,8 +183,6 @@ sub _inline_destructor {
         name         => 'DESTROY'
     );
 
-    return unless $destructor->is_needed;
-
     $metaclass->add_method( 'DESTROY' => $destructor )
 }