From 0d0a444d4380d9d1eb580d862b2376b9693d77f3 Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Fri, 11 Oct 2019 06:53:31 +0900 Subject: Remove `as_original_file` --- crates/ra_hir/src/ids.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'crates/ra_hir/src/ids.rs') diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index a3b65cc79..85b022744 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs @@ -50,16 +50,6 @@ impl HirFileId { } } - /// XXX: this is a temporary function, which should go away when we implement the - /// nameresolution+macro expansion combo. Prefer using `original_file` if - /// possible. - pub fn as_original_file(self) -> FileId { - match self.0 { - HirFileIdRepr::File(file_id) => file_id, - HirFileIdRepr::Macro(_r) => panic!("macro generated file: {:?}", self), - } - } - /// Get the crate which the macro lives in, if it is a macro file. pub(crate) fn macro_crate(self, db: &impl AstDatabase) -> Option { match self.0 { -- cgit v1.2.3