Remove unused StmtList::push_front

This commit is contained in:
oxalica 2023-06-19 22:56:31 +08:00
parent 52f1ce17aa
commit 2cd7b0cfce

View file

@ -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 { impl ast::VariantList {
pub fn add_variant(&self, variant: ast::Variant) { pub fn add_variant(&self, variant: ast::Variant) {
let (indent, position) = match self.variants().last() { let (indent, position) = match self.variants().last() {