Skip to content
Snippets Groups Projects
Commit 00eedb68 authored by Andy Yates's avatar Andy Yates
Browse files

Simplification of the AUTOLOAD since there were blocks of code which could...

Simplification of the AUTOLOAD since there were blocks of code which could never be called. Removed these unused blocks.
parent b1b1df9e
No related branches found
No related tags found
No related merge requests found
......@@ -916,26 +916,18 @@ sub AUTOLOAD {
} else {
throw( sprintf( "Could not work out type for %s\n", $AUTOLOAD ) );
}
my $ret =
$reg->get_adaptor( $self->species(), $self->group(), $type );
if ($ret) {
return $ret;
} else {
warning(
sprintf(
"Could not find %s adaptor in the registry for %s %s\n",
$type, $self->species(), $self->group() ) );
throw( sprintf( "Could not get adaptor %s for %s %s\n",
$type, $self->species(), $self->group() ) );
my $ret = $reg->get_adaptor( $self->species(), $self->group(), $type );
return $ret;
}
return $ret if $ret;
warning( sprintf(
"Could not find %s adaptor in the registry for %s %s\n",
$type, $self->species(), $self->group() ) );
die( sprintf( "No such method: %s\n", $AUTOLOAD ) );
throw( sprintf(
"Could not get adaptor %s for %s %s\n",
$type, $self->species(), $self->group() ) );
} ## end sub AUTOLOAD
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment