From 7dbf24fc7a8f77479780a0da72f9a9bd7668773f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 2 Oct 2021 15:32:23 +0300 Subject: [PATCH] minor: dead code --- crates/syntax/src/ast/node_ext.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs index c0352f9b134..800befb04bd 100644 --- a/crates/syntax/src/ast/node_ext.rs +++ b/crates/syntax/src/ast/node_ext.rs @@ -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 { - self.stmt_list().into_iter().flat_map(|it| it.items()) - } - pub fn statements(&self) -> impl Iterator { self.stmt_list().into_iter().flat_map(|it| it.statements()) }