diff --git a/modules/Bio/EnsEMBL/Collection/Exon.pm b/modules/Bio/EnsEMBL/Collection/Exon.pm index 83f64985b904033485b79d28987532d4191b644d..5d5a89ab98e2cd16e6e23905ad15c6587b33b4ea 100644 --- a/modules/Bio/EnsEMBL/Collection/Exon.pm +++ b/modules/Bio/EnsEMBL/Collection/Exon.pm @@ -84,10 +84,9 @@ sub _create_feature { sub _create_feature_fast { my ( $this, $feature_type, $args ) = @_; - my $feature = - $this->SUPER::_create_feature_fast( $feature_type, $args ); - - return $feature; + throw( '_create_feature_fast() ' + . 'is not implemented for ' + . 'exon collections' ); } sub _tables { diff --git a/modules/Bio/EnsEMBL/Collection/RepeatFeature.pm b/modules/Bio/EnsEMBL/Collection/RepeatFeature.pm index f4b0663d2b8e3d21816bee39552a1ee86530dfce..a53656d67b4a95e77a8cab514c84da9203ee6f13 100644 --- a/modules/Bio/EnsEMBL/Collection/RepeatFeature.pm +++ b/modules/Bio/EnsEMBL/Collection/RepeatFeature.pm @@ -53,22 +53,9 @@ use base( 'Bio::EnsEMBL::Collection', sub _create_feature { my ( $this, $feature_type, $args ) = @_; - my $feature = $this->SUPER::_create_feature( $feature_type, $args ); - - if ( !$this->lightweight() ) { - my ( $hstart, $hend, $score, $repeat_consensus, $analysis ) = - rearrange( [ 'HSTART', 'HEND', - 'SCORE', 'REPEAT_CONSENSUS', - 'ANALYSIS' - ], - @{$args} ); - - push( @{$feature}, - $hstart, $hend, $score, $repeat_consensus->dbID(), - $analysis->dbID() ); - } - - return $feature; + throw( '_create_feature() ' + . 'is not implemented for ' + . 'repeat feature collections' ); } sub _create_feature_fast {