From: Shawn M Moore Date: Sat, 28 Mar 2009 22:13:38 +0000 (-0400) Subject: Don't protect against undef both because this is a hot function and X-Git-Tag: 0.80~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=983f31f6e5a0a028fc5a9dfb076c308d394f9594;p=gitmo%2FClass-MOP.git Don't protect against undef both because this is a hot function and because the user shouldn't pass undef to this :) --- diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index e0cb97a..e1c4579 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -138,8 +138,6 @@ sub _is_valid_class_name { sub class_of { my $class = blessed($_[0]) || $_[0]; - - return undef if !defined($class); return get_metaclass_by_name($class); }