From 7e5ceea409b0577dbe9d3eb7a2671a9cb85e658a Mon Sep 17 00:00:00 2001 From: hkctkuy Date: Thu, 22 Feb 2024 17:01:06 +0300 Subject: [PATCH] Remove dead code --- libcasr/src/cluster.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/libcasr/src/cluster.rs b/libcasr/src/cluster.rs index 17ba5e98..69bb2c35 100644 --- a/libcasr/src/cluster.rs +++ b/libcasr/src/cluster.rs @@ -207,26 +207,6 @@ impl Cluster { } max } - /// Convert cluster to vector of reports - pub fn reports(&self) -> Vec { - let mut reports: Vec = 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