Remove ResultSourceHandle check in inflate_result
Peter Rabbitson [Tue, 12 Feb 2013 11:47:51 +0000 (12:47 +0100)]
A isa() check is expensive, and it seems like the work in 4376a1574 made
it entirely superfluous

lib/DBIx/Class/Row.pm

index a5e0e12..6ee598b 100644 (file)
@@ -1181,9 +1181,6 @@ L<DBIx::Class::ResultSet>, see L<DBIx::Class::ResultSet/result_class>.
 sub inflate_result {
   my ($class, $source, $me, $prefetch) = @_;
 
-  $source = $source->resolve
-    if $source->isa('DBIx::Class::ResultSourceHandle');
-
   my $new = bless
     { _column_data => $me, _result_source => $source },
     ref $class || $class