From 9f377100f01022be6ee6234570c08a6bc56dcd77 Mon Sep 17 00:00:00 2001 From: Daniel Zuncke Date: Thu, 26 Oct 2023 13:21:58 +0200 Subject: [PATCH] Remove unnecessary tok!"comment" filter --- src/dfmt/ast_info.d | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/dfmt/ast_info.d b/src/dfmt/ast_info.d index b77095e..a7b74be 100644 --- a/src/dfmt/ast_info.d +++ b/src/dfmt/ast_info.d @@ -474,11 +474,6 @@ final class FormatVisitor : ASTVisitor foreach (t; item.tokens) { - if (t.type == tok!"comment") - { - continue; - } - if (t.type == tok!"identifier" && !foundIdentifier) { foundIdentifier = true;