aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-12-17 15:03:38 +0000
committerGitHub <[email protected]>2019-12-17 15:03:38 +0000
commitff8f80579a9e55d622b994e752c3692bfbd80dcf (patch)
tree71af55fb248656b9c34b6857dfd6d6ac0448c9a6 /crates/ra_hir_def/src
parentb90f9e6d594584ab003a33142bb2193aea6f8bcd (diff)
parent0630f8110f998f937608cb2962875a896a0298ae (diff)
Merge #2582
2582: Drop dead code r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/nameres/path_resolution.rs11
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);