From 6b7995195a7d89ee3d5b669ca7424d0f412ad7bb Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Mon, 11 Oct 2021 22:36:46 +0200 Subject: [PATCH] Remove unused function. --- compiler/rustc_hir/src/definitions.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compiler/rustc_hir/src/definitions.rs b/compiler/rustc_hir/src/definitions.rs index b7bdc9a1414a..ca29351455e6 100644 --- a/compiler/rustc_hir/src/definitions.rs +++ b/compiler/rustc_hir/src/definitions.rs @@ -92,12 +92,6 @@ impl DefPathTable { .iter_enumerated() .map(move |(index, key)| (index, key, &self.def_path_hashes[index])) } - - pub fn all_def_path_hashes_and_def_ids( - &self, - ) -> impl Iterator + '_ { - self.def_path_hashes.iter_enumerated().map(move |(index, hash)| (hash, index)) - } } /// The definition table containing node definitions.