From: Shawn M Moore Date: Thu, 25 Jun 2009 04:18:46 +0000 (-0400) Subject: We no longer use $class X-Git-Tag: 0.84~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=50aa52f45966786dcdc2613679aabe09434b5b57;p=gitmo%2FMoose.git We no longer use $class --- diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index 9ad9c2e..069d7bc 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -371,7 +371,6 @@ sub duck_type { 'Object', sub { my $obj = $_; - my $class = blessed($obj) || return; return 0 unless all { $obj->can($_) } @methods; return 1; },