From 53b2b36f95ae583cb192d50d0faf9fb31be90da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Tue, 7 Sep 2010 08:31:58 +0000 Subject: [PATCH] Remove warning from is_circular(), it was filling up the web logs. --- modules/Bio/EnsEMBL/Slice.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/Bio/EnsEMBL/Slice.pm b/modules/Bio/EnsEMBL/Slice.pm index 5d32179703..ba7e091cd0 100644 --- a/modules/Bio/EnsEMBL/Slice.pm +++ b/modules/Bio/EnsEMBL/Slice.pm @@ -529,10 +529,7 @@ sub is_toplevel { sub is_circular { my ($self) = @_; - if ( !defined( $self->adaptor() ) ) { - warning("Slice has no adaptor, assuming it's not circular."); - return 0; - } + if ( !defined( $self->adaptor() ) ) { return 0 } if ( !defined( $self->{'circular'} ) ) { my $attrs = $self->get_all_Attributes('circular_seq'); -- GitLab