diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-10-01 11:10:30 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-10-01 11:10:30 -0400 |
| commit | f0dc7bd1fdc8eb951a1c9d15b05868f47d412553 (patch) | |
| tree | 0c16de15411fc353e5a6e5b72572eb21724b7dc5 | |
| parent | 6bfdf37250155afa872f7cbbde745e0b050e4f3a (diff) | |
| download | rust-f0dc7bd1fdc8eb951a1c9d15b05868f47d412553.tar.gz rust-f0dc7bd1fdc8eb951a1c9d15b05868f47d412553.zip | |
remove support method for synthetic default method ids
| -rw-r--r-- | src/librustc/front/map/mod.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/librustc/front/map/mod.rs b/src/librustc/front/map/mod.rs index aba6429abae..825d5da0c99 100644 --- a/src/librustc/front/map/mod.rs +++ b/src/librustc/front/map/mod.rs @@ -305,22 +305,6 @@ impl<'ast> Map<'ast> { self.definitions.borrow().as_local_node_id(def_id) } - /// for default methods, we create a fake node-id; this method - /// adds that fake node-id to the def-id tables - pub fn synthesize_default_method_def_id(&self, - impl_def_id: DefId, - new_method_id: NodeId, - method_name: Name) - -> DefId { - assert!(impl_def_id.is_local()); - let index = - self.definitions.borrow_mut() - .create_def_with_parent(Some(impl_def_id.index), - new_method_id, - DefPathData::Value(method_name)); - DefId::local(index) - } - fn entry_count(&self) -> usize { self.map.borrow().len() } |
