From: Shawn M Moore Date: Sat, 19 Feb 2011 04:07:14 +0000 (-0500) Subject: Use the is_anon_class method we already have X-Git-Tag: 2.0100~228 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=17680c72cbba684c4ef0b21d6434e837ac899e42;p=gitmo%2FMoose.git Use the is_anon_class method we already have --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index ec803e4..43628f2 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -449,7 +449,7 @@ sub _remove_generated_metaobjects { return if in_global_destruction(); # it'll happen soon anyway and this just makes things more complicated $self->free_anon_class - unless $name =~ /^$ANON_CLASS_PREFIX/o; + if $self->is_anon_class; } sub free_anon_class {