From 2cd7b0cfce8846514fb8ae81a31856f1c096ec05 Mon Sep 17 00:00:00 2001 From: oxalica Date: Mon, 19 Jun 2023 22:56:31 +0800 Subject: [PATCH] Remove unused `StmtList::push_front` --- crates/syntax/src/ast/edit_in_place.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/syntax/src/ast/edit_in_place.rs b/crates/syntax/src/ast/edit_in_place.rs index b3ea6ca8d4..5919609d91 100644 --- a/crates/syntax/src/ast/edit_in_place.rs +++ b/crates/syntax/src/ast/edit_in_place.rs @@ -676,12 +676,6 @@ fn get_or_insert_comma_after(syntax: &SyntaxNode) -> SyntaxToken { } } -impl ast::StmtList { - pub fn push_front(&self, statement: ast::Stmt) { - ted::insert(Position::after(self.l_curly_token().unwrap()), statement.syntax()); - } -} - impl ast::VariantList { pub fn add_variant(&self, variant: ast::Variant) { let (indent, position) = match self.variants().last() {