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

Cleaning up method

parent 2b971611
No related branches found
No related tags found
No related merge requests found
......@@ -2478,18 +2478,20 @@ sub no_version_check {
=head2 no_cache_warnings
Turns off any warnings about not using caching in all available
adaptors.
Returntype : None
Exceptions : None
Arg[0] : boolean for turning the flag on and off
Description : Turns off any warnings about not using caching in all available
adaptors.
Returntype : boolean Current status
Exceptions : None
=cut
sub no_cache_warnings {
my ($self) = @_;
$Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor::SILENCE_CACHE_WARNINGS = 1;
return;
my ($self, $arg) = @_;
if(defined $arg) {
$Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor::SILENCE_CACHE_WARNINGS = $arg;
}
return $Bio::EnsEMBL::DBSQL::BaseFeatureAdaptor::SILENCE_CACHE_WARNINGS;
}
......
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