Skip to content

Commit f0dc7bd

Browse files
committed
remove support method for synthetic default method ids
1 parent 6bfdf37 commit f0dc7bd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/librustc/front/map/mod.rs

-16
Original file line numberDiff line numberDiff line change
@@ -305,22 +305,6 @@ impl<'ast> Map<'ast> {
305305
self.definitions.borrow().as_local_node_id(def_id)
306306
}
307307

308-
/// for default methods, we create a fake node-id; this method
309-
/// adds that fake node-id to the def-id tables
310-
pub fn synthesize_default_method_def_id(&self,
311-
impl_def_id: DefId,
312-
new_method_id: NodeId,
313-
method_name: Name)
314-
-> DefId {
315-
assert!(impl_def_id.is_local());
316-
let index =
317-
self.definitions.borrow_mut()
318-
.create_def_with_parent(Some(impl_def_id.index),
319-
new_method_id,
320-
DefPathData::Value(method_name));
321-
DefId::local(index)
322-
}
323-
324308
fn entry_count(&self) -> usize {
325309
self.map.borrow().len()
326310
}

0 commit comments

Comments
 (0)