Merge #8615
8615: skip: Remove `ItemTree::all_inner_items` r=jonas-schievink a=jonas-schievink It's unused. bors r+ Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
commit
163d9d31a4
@ -196,13 +196,6 @@ impl ItemTree {
|
||||
self.raw_attrs(of).clone().filter(db, krate)
|
||||
}
|
||||
|
||||
pub fn all_inner_items(&self) -> impl Iterator<Item = ModItem> + '_ {
|
||||
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<ast::BlockExpr>) -> &[ModItem] {
|
||||
match &self.data {
|
||||
Some(data) => data.inner_items.get(&block).map(|it| &**it).unwrap_or(&[]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user