Skip to content

Commit fccc5e3

Browse files
committed
lib: remove dead callee_sorted_by_file_func
1 parent bbfec64 commit fccc5e3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,3 @@ pub struct Callee {
2424
pub file: String,
2525
pub func: String,
2626
}
27-
28-
impl SerFunction {
29-
/// Even though callees are in insertion order, to make them easy to check,
30-
/// sort by file and function.
31-
pub fn callee_sorted_by_file_func(&self) -> Vec<[&str; 2]> {
32-
let mut callees: Vec<_> = self.callees.iter().collect();
33-
callees.sort_by(|a, b| (&a.file, &a.func).cmp(&(&b.file, &b.func)));
34-
callees.into_iter().map(|c| [&*c.file, &*c.func]).collect()
35-
}
36-
}

0 commit comments

Comments
 (0)