diff --git a/src/alejandra_engine/src/children.rs b/src/alejandra_engine/src/children.rs index 44f2bc8..efd1e7b 100644 --- a/src/alejandra_engine/src/children.rs +++ b/src/alejandra_engine/src/children.rs @@ -134,23 +134,7 @@ impl Children { }) } - pub fn drain_comment(&mut self, mut callback: F) { - if let Some(child) = self.peek_next() { - if let rnix::SyntaxKind::TOKEN_COMMENT = child.element.kind() { - callback( - child - .element - .as_token() - .as_ref() - .unwrap() - .text() - .to_string(), - ); - self.move_next(); - } - } - } - + // #[deprecated] pub fn drain_comments(&mut self, mut callback: F) { while let Some(child) = self.peek_next() { match child.element.kind() {