Skip to content

Commit

Permalink
chore: delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
a-frantz committed Feb 14, 2024
1 parent 00999c1 commit 2661300
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/derive/instrument/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@ pub struct QueryResult {
pub result: HashSet<String>,
}

/// Utility struct for holding the results of look-ups for instrument and
/// flowcell names.
pub struct Queries {
/// The results of the instrument name look-ups.
pub instrument_name_queries: Vec<QueryResult>,

/// The results of the flowcell name look-ups.
pub flowcell_name_queries: Vec<QueryResult>,
}

/// Metrics related to how read records were processed.
#[derive(Debug, Default, Serialize)]
pub struct RecordMetrics {
Expand Down Expand Up @@ -108,30 +98,6 @@ pub struct DerivedInstrumentResult {
pub records: RecordMetrics,
}

impl DerivedInstrumentResult {
/// Creates a new [`DerivedInstrumentResult`].
pub fn new(
succeeded: bool,
instruments: Option<HashSet<String>>,
confidence: String,
evidence: Option<String>,
comment: Option<String>,
queries: Queries,
records: RecordMetrics,
) -> Self {
DerivedInstrumentResult {
succeeded,
instruments,
confidence,
evidence,
comment,
instrument_name_queries: queries.instrument_name_queries,
flowcell_name_queries: queries.flowcell_name_queries,
records,
}
}
}

impl Default for DerivedInstrumentResult {
fn default() -> Self {
DerivedInstrumentResult {
Expand Down

0 comments on commit 2661300

Please sign in to comment.