projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8c1a2f3
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Immutable.pm
b/lib/Class/MOP/Immutable.pm
index
076fbab
..
41fa4ea
100644
(file)
--- a/
lib/Class/MOP/Immutable.pm
+++ b/
lib/Class/MOP/Immutable.pm
@@
-183,8
+183,6
@@
sub _inline_destructor {
name => 'DESTROY'
);
- return unless $destructor->is_needed;
-
$metaclass->add_method( 'DESTROY' => $destructor )
}