From 0630f8110f998f937608cb2962875a896a0298ae Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 17 Dec 2019 16:03:15 +0100 Subject: Drop dead code --- crates/ra_hir_def/src/nameres/path_resolution.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'crates/ra_hir_def') diff --git a/crates/ra_hir_def/src/nameres/path_resolution.rs b/crates/ra_hir_def/src/nameres/path_resolution.rs index a3bfc1542..1dbc4f371 100644 --- a/crates/ra_hir_def/src/nameres/path_resolution.rs +++ b/crates/ra_hir_def/src/nameres/path_resolution.rs @@ -122,17 +122,6 @@ impl CrateDefMap { log::debug!("resolving {:?} in module", segment); self.resolve_name_in_module(db, original_module, &segment, prefer_module(idx)) } - // PathKind::Self_ => { - // PerNs::types(ModuleId { krate: self.krate, local_id: original_module }.into()) - // } - // PathKind::Super => { - // if let Some(p) = self.modules[original_module].parent { - // PerNs::types(ModuleId { krate: self.krate, local_id: p }.into()) - // } else { - // log::debug!("super path in root module"); - // return ResolvePathResult::empty(ReachedFixedPoint::Yes); - // } - // } PathKind::Super(lvl) => { let m = successors(Some(original_module), |m| self.modules[*m].parent) .nth(lvl as usize); -- cgit v1.2.3