Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
hkctkuy committed Feb 22, 2024
1 parent a0c7833 commit 7e5ceea
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions libcasr/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,26 +207,6 @@ impl Cluster {
}
max
}
/// Convert cluster to vector of reports
pub fn reports(&self) -> Vec<ReportInfo> {
let mut reports: Vec<ReportInfo> = Vec::new();
let mut crashlines = self.crashlines.clone();
for (i, path) in self.paths.iter().enumerate() {
// Get crashline for cur casrep
let mut crashline = String::new();
for (line, &number) in &crashlines {
if number == i {
crashline = line.to_string();
break;
}
}
// Drop cur crashline from crashlines
crashlines.remove(&crashline);
// Update results
reports.push((path.clone(), (self.stacktraces[i].clone(), crashline)));
}
reports
}
}

/// Get diameter of specified cluster
Expand Down

0 comments on commit 7e5ceea

Please sign in to comment.