2582: Drop dead code r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-12-17 15:03:38 +00:00 committed by GitHub
commit ff8f80579a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);