Skip to content

Commit c46ae94

Browse files
committed
c2rust-refactor: Remove unused DeletedNode::id
1 parent c037049 commit c46ae94

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

c2rust-refactor/src/collapse/deleted.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ use super::mac_table::{AsMacNodeRef, MacNodeRef, MacTable};
2323
/// crates its IDs are relative to.
2424
#[derive(Clone, Debug)]
2525
pub struct DeletedNode<'ast> {
26-
/// The ID of the deleted node. This is always an unexpanded ID.
27-
id: NodeId,
2826
/// The ID of the containing node. This gets updated by `transfer`, progressing through
2927
/// unexpanded, expanded, and collapsed IDs.
3028
parent: NodeId,
@@ -60,7 +58,6 @@ impl<'a, 'ast> CollectDeletedNodes<'a, 'ast> {
6058
.map(|id| self.node_map.save_origin(id))
6159
.collect();
6260
self.deleted.push(DeletedNode {
63-
id,
6461
parent,
6562
preds: history.clone(),
6663
node: n.as_mac_node_ref(),

0 commit comments

Comments
 (0)