Skip to content

Commit 7dbf24f

Browse files
committed
minor: dead code
1 parent d5c5b7c commit 7dbf24f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

crates/syntax/src/ast/node_ext.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ use parser::SyntaxKind;
1010
use rowan::{GreenNodeData, GreenTokenData};
1111

1212
use crate::{
13-
ast::{
14-
self, support, AstNode, AstToken, HasAttrs, HasGenericParams, HasModuleItem, HasName,
15-
SyntaxNode,
16-
},
13+
ast::{self, support, AstNode, AstToken, HasAttrs, HasGenericParams, HasName, SyntaxNode},
1714
NodeOrToken, SmolStr, SyntaxElement, SyntaxToken, TokenText, T,
1815
};
1916

@@ -54,10 +51,6 @@ impl ast::HasModuleItem for ast::StmtList {}
5451

5552
impl ast::BlockExpr {
5653
// FIXME: remove all these methods, they belong to ast::StmtList
57-
pub fn items(&self) -> impl Iterator<Item = ast::Item> {
58-
self.stmt_list().into_iter().flat_map(|it| it.items())
59-
}
60-
6154
pub fn statements(&self) -> impl Iterator<Item = ast::Stmt> {
6255
self.stmt_list().into_iter().flat_map(|it| it.statements())
6356
}

0 commit comments

Comments
 (0)