Skip to content

Commit 9f62c3b

Browse files
Remove stale comments
1 parent 73e13fe commit 9f62c3b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

trace-utils/src/trace_utils.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ pub fn get_root_span_index(trace: &[pb::Span]) -> anyhow::Result<usize> {
142142
anyhow::bail!("Cannot find root span index in an empty trace.");
143143
}
144144

145-
// parent_id -> (child_span, index_of_child_span_in_trace)
146-
let mut parent_id_to_child_map: HashMap<u64, (&Span, usize)> = HashMap::new();
147-
148-
// look for the span with parent_id == 0 (starting from the end) since some clients put the root
149-
150145
// Do a first pass to find if we have an obvious root span (starting from the end) since some
151146
// clients put the root span last.
152147
for (i, span) in trace.into_iter().enumerate().rev() {

0 commit comments

Comments
 (0)