From e6730da779de8ae89a9726a624fc6c5adae5a6ba Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Thu, 25 Aug 2022 10:48:47 +0200 Subject: [PATCH] Remove obsolete todos --- crates/rome_js_formatter/src/syntax_rewriter.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/rome_js_formatter/src/syntax_rewriter.rs b/crates/rome_js_formatter/src/syntax_rewriter.rs index 8cbee0beee2..df21cc23d04 100644 --- a/crates/rome_js_formatter/src/syntax_rewriter.rs +++ b/crates/rome_js_formatter/src/syntax_rewriter.rs @@ -105,7 +105,6 @@ impl JsFormatSyntaxRewriter { // The leading whitespace before the opening parens replaces the whitespace before the node. while let Some(trivia) = leading_trivia.peek() { if trivia.is_whitespace() || trivia.is_newline() { - // TODO add test case that triggers the case where inner offset is outdated. let trivia_len = trivia.text_len(); self.source_map .add_deleted_range(TextRange::at(inner_offset, trivia_len)); @@ -133,9 +132,6 @@ impl JsFormatSyntaxRewriter { // doesn't contain ANY token, but we know that the subtree contains at least the first token. let last_token = updated.last_token().unwrap(); - // TODO consider skipping the trailing whitespace of the node before the `)`? - // So that it is inline with the formatting of verbatim nodes? - let new_last = last_token.with_trailing_trivia_pieces(chain_pieces( last_token.trailing_trivia().pieces(), r_paren_trivia,