From: Shawn M Moore Date: Tue, 31 Mar 2009 04:07:03 +0000 (-0400) Subject: find_meta is equivalent to class_of X-Git-Tag: 0.73_01~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=56ea1a1124e8c262babf2c91c8a4ef642b06b55c;p=gitmo%2FMoose.git find_meta is equivalent to class_of --- diff --git a/lib/Moose/Util.pm b/lib/Moose/Util.pm index 67b33ad..bc78ab9 100644 --- a/lib/Moose/Util.pm +++ b/lib/Moose/Util.pm @@ -31,10 +31,7 @@ Sub::Exporter::setup_exporter({ ## some utils for the utils ... -sub find_meta { - return unless $_[0]; - return Class::MOP::get_metaclass_by_name(blessed($_[0]) || $_[0]); -} +sub find_meta { Class::MOP::class_of(@_) } ## the functions ...