From ae97a45c355cbfc0aa61c09ea7cb93373855b9ff Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 26 Jan 2019 22:43:07 +0300 Subject: [PATCH] remove dead code --- crates/ra_hir/src/ids.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index 7dd4b540e7a..631f6f6a1c3 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs @@ -367,10 +367,6 @@ pub(crate) fn id_of_unchecked(&self, item: &SyntaxNode) -> SourceFileItemId { self.arena.iter().map(|(_id, i)| i).collect::>(), ); } - pub fn id_of_parse(&self) -> SourceFileItemId { - let (id, _syntax) = self.arena.iter().next().unwrap(); - id - } } impl std::ops::Index for SourceFileItems {