Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ast/node_ext.rs')
-rw-r--r--crates/syntax/src/ast/node_ext.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs
index a07f02e445..c0352f9b13 100644
--- a/crates/syntax/src/ast/node_ext.rs
+++ b/crates/syntax/src/ast/node_ext.rs
@@ -58,9 +58,6 @@ impl ast::BlockExpr {
self.stmt_list().into_iter().flat_map(|it| it.items())
}
- pub fn is_empty(&self) -> bool {
- self.statements().next().is_none() && self.tail_expr().is_none()
- }
pub fn statements(&self) -> impl Iterator<Item = ast::Stmt> {
self.stmt_list().into_iter().flat_map(|it| it.statements())
}