From: Tokuhiro Matsuno Date: Sat, 6 Dec 2008 05:50:42 +0000 (+0000) Subject: inject empty DESTRUCT method for performance improvement. X-Git-Tag: 0.19~136^2~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c15085d773ac3c69ac27b4d515895a97bd55b3d;p=gitmo%2FMouse.git inject empty DESTRUCT method for performance improvement. --- diff --git a/lib/Mouse/Meta/Method/Destructor.pm b/lib/Mouse/Meta/Method/Destructor.pm index 09e23bc..935be3b 100644 --- a/lib/Mouse/Meta/Method/Destructor.pm +++ b/lib/Mouse/Meta/Method/Destructor.pm @@ -16,7 +16,7 @@ sub generate_destructor_method_inline { } join "\n", @code; } else { - return; # no demolish =) + return 'sub { }'; # no demolish =) } };