diff options
author | Aleksey Kladov <[email protected]> | 2019-12-17 15:03:15 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-17 15:03:15 +0000 |
commit | 0630f8110f998f937608cb2962875a896a0298ae (patch) | |
tree | 169a82bc7f95b9f8aa051e9c5b13f92d6e9b143d /crates | |
parent | aca022f1d49a6d945f3ef4f8c781d7337120b68d (diff) |
Drop dead code
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir_def/src/nameres/path_resolution.rs | 11 |
1 files changed, 0 insertions, 11 deletions
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 { | |||
122 | log::debug!("resolving {:?} in module", segment); | 122 | log::debug!("resolving {:?} in module", segment); |
123 | self.resolve_name_in_module(db, original_module, &segment, prefer_module(idx)) | 123 | self.resolve_name_in_module(db, original_module, &segment, prefer_module(idx)) |
124 | } | 124 | } |
125 | // PathKind::Self_ => { | ||
126 | // PerNs::types(ModuleId { krate: self.krate, local_id: original_module }.into()) | ||
127 | // } | ||
128 | // PathKind::Super => { | ||
129 | // if let Some(p) = self.modules[original_module].parent { | ||
130 | // PerNs::types(ModuleId { krate: self.krate, local_id: p }.into()) | ||
131 | // } else { | ||
132 | // log::debug!("super path in root module"); | ||
133 | // return ResolvePathResult::empty(ReachedFixedPoint::Yes); | ||
134 | // } | ||
135 | // } | ||
136 | PathKind::Super(lvl) => { | 125 | PathKind::Super(lvl) => { |
137 | let m = successors(Some(original_module), |m| self.modules[*m].parent) | 126 | let m = successors(Some(original_module), |m| self.modules[*m].parent) |
138 | .nth(lvl as usize); | 127 | .nth(lvl as usize); |