From f35d40cc0013e5829af208e86e71975b5db15ee3 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 1 Jul 2026 18:33:19 +0000 Subject: [PATCH] style: drop redundant EOL comments flagged by ktlint in Hex.kt New KDoc blocks on isHex/isHex64 already state the "~47ns" and "~30% faster" perf notes, so the trailing EOL comments between the KDoc and the function now trip ktlint's standard:no-consecutive-comments rule ("an EOL comment may not be preceded by a KDoc"). Remove them. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01BawgXifvcPidMMqJ719Ka2 --- .../src/commonMain/kotlin/com/vitorpamplona/quartz/utils/Hex.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/utils/Hex.kt b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/utils/Hex.kt index 724c252da0..4c834b2e8c 100644 --- a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/utils/Hex.kt +++ b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/utils/Hex.kt @@ -60,7 +60,6 @@ object Hex { * emoji in `p` tags) instead of throwing. ~47ns in debug on the Emulator; * use [isHex64] when the length is known to be 64. */ - // 47ns in debug on the Emulator fun isHex(hex: String?): Boolean { if (hex == null) return false if (hex.length and 1 != 0) return false @@ -93,7 +92,6 @@ object Hex { * the length is fixed and the checks are unrolled. Assumes [hex] is at least * 64 chars long; it does not verify the total length. */ - // 30% faster than isHex fun isHex64(hex: String): Boolean = try { hexToByte[hex[0].code] >= 0 &&