minor: dead code
This commit is contained in:
parent
d5c5b7cd12
commit
7dbf24fc7a
@ -10,10 +10,7 @@ use parser::SyntaxKind;
|
||||
use rowan::{GreenNodeData, GreenTokenData};
|
||||
|
||||
use crate::{
|
||||
ast::{
|
||||
self, support, AstNode, AstToken, HasAttrs, HasGenericParams, HasModuleItem, HasName,
|
||||
SyntaxNode,
|
||||
},
|
||||
ast::{self, support, AstNode, AstToken, HasAttrs, HasGenericParams, HasName, SyntaxNode},
|
||||
NodeOrToken, SmolStr, SyntaxElement, SyntaxToken, TokenText, T,
|
||||
};
|
||||
|
||||
@ -54,10 +51,6 @@ impl ast::HasModuleItem for ast::StmtList {}
|
||||
|
||||
impl ast::BlockExpr {
|
||||
// FIXME: remove all these methods, they belong to ast::StmtList
|
||||
pub fn items(&self) -> impl Iterator<Item = ast::Item> {
|
||||
self.stmt_list().into_iter().flat_map(|it| it.items())
|
||||
}
|
||||
|
||||
pub fn statements(&self) -> impl Iterator<Item = ast::Stmt> {
|
||||
self.stmt_list().into_iter().flat_map(|it| it.statements())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user