From 0414b6531996ebd6f3c8b943fac94a8784869558 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 21 Apr 2021 18:10:25 +0200 Subject: Remove `ItemTree::all_inner_items` --- crates/hir_def/src/item_tree.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'crates/hir_def') diff --git a/crates/hir_def/src/item_tree.rs b/crates/hir_def/src/item_tree.rs index 16a94a058..eaeca01bd 100644 --- a/crates/hir_def/src/item_tree.rs +++ b/crates/hir_def/src/item_tree.rs @@ -196,13 +196,6 @@ impl ItemTree { self.raw_attrs(of).clone().filter(db, krate) } - pub fn all_inner_items(&self) -> impl Iterator + '_ { - match &self.data { - Some(data) => Some(data.inner_items.values().flatten().copied()).into_iter().flatten(), - None => None.into_iter().flatten(), - } - } - pub fn inner_items_of_block(&self, block: FileAstId) -> &[ModItem] { match &self.data { Some(data) => data.inner_items.get(&block).map(|it| &**it).unwrap_or(&[]), -- cgit v1.2.3