From fa60e2bc6f36cc907f09e0d4701f8e5c9b5f85ed Mon Sep 17 00:00:00 2001 From: Marina Gourtovaia Date: Tue, 24 Oct 2023 09:12:15 +0100 Subject: [PATCH] Removed deprecated seq_qc_state method from st::api::lims --- lib/st/api/lims.pm | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/lib/st/api/lims.pm b/lib/st/api/lims.pm index 2790c40e..47261d51 100644 --- a/lib/st/api/lims.pm +++ b/lib/st/api/lims.pm @@ -563,32 +563,6 @@ sub _build_required_insert_size { return $is_hash; } - -=head2 seq_qc_state - - 1 for passes, 0 for failed, undef if the value is not set. - - This method is deprecated as of 08 March 2016. It should not be used in any - new code. The only place where this method is used in production code is - the old warehouse loader. Deprecation warning is not appropriate because the - old wh loader logs will be flooded. - -=cut -sub seq_qc_state { - my $self = shift; - my $state = $self->driver ? $self->driver->qc_state : q[]; - if (!defined $state || $state eq '1' || $state eq '0') { - return $state; - } - if ($state eq q[]) { - return; - } - if (!exists $QC_EVAL_MAPPING{$state}) { - croak qq[Unexpected value '$state' for seq qc state in ] . $self->to_string; - } - return $QC_EVAL_MAPPING{$state}; -} - =head2 reference_genome Read-only accessor, not possible to set from the constructor.