From 794bbab70dfd009178adf03bd82a30dc569ecde6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 20 Dec 2019 15:26:19 +0100 Subject: Remove code that never was alive? --- crates/ra_hir_def/src/nameres.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'crates/ra_hir_def/src') diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs index 9aae7e48e..af52fa36e 100644 --- a/crates/ra_hir_def/src/nameres.rs +++ b/crates/ra_hir_def/src/nameres.rs @@ -57,9 +57,7 @@ mod tests; use std::sync::Arc; -use hir_expand::{ - ast_id_map::FileAstId, diagnostics::DiagnosticSink, name::Name, InFile, MacroDefId, -}; +use hir_expand::{diagnostics::DiagnosticSink, name::Name, InFile, MacroDefId}; use once_cell::sync::Lazy; use ra_arena::Arena; use ra_db::{CrateId, Edition, FileId, FilePosition}; @@ -76,7 +74,7 @@ use crate::{ nameres::{diagnostics::DefDiagnostic, path_resolution::ResolveMode}, path::ModPath, per_ns::PerNs, - AstId, FunctionId, ImplId, LocalImportId, LocalModuleId, ModuleDefId, ModuleId, TraitId, + AstId, ImplId, LocalImportId, LocalModuleId, ModuleDefId, ModuleId, TraitId, }; /// Contains all top-level defs from a macro-expanded crate @@ -176,11 +174,6 @@ pub struct ModuleData { pub impls: Vec, } -#[derive(Default, Debug, PartialEq, Eq)] -pub(crate) struct Declarations { - fns: FxHashMap, FunctionId>, -} - #[derive(Debug, Default, PartialEq, Eq)] pub struct ModuleScope { items: FxHashMap, -- cgit v1.2.3