From f288eb71a44a4e2b6bdf1600f6363900937995f3 Mon Sep 17 00:00:00 2001 From: phranck Date: Mon, 9 Feb 2026 18:33:30 +0100 Subject: [PATCH] Chore: Remove unused ansiRegex (dead code after manual parsing optimization) --- Sources/TUIkit/Rendering/ANSIRenderer.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Sources/TUIkit/Rendering/ANSIRenderer.swift b/Sources/TUIkit/Rendering/ANSIRenderer.swift index fa20979..36a6aa8 100644 --- a/Sources/TUIkit/Rendering/ANSIRenderer.swift +++ b/Sources/TUIkit/Rendering/ANSIRenderer.swift @@ -21,13 +21,6 @@ enum ANSIRenderer { /// Dim/faint text style code. static let dim = "\(csi)2m" - /// Precompiled regex that matches any ANSI escape sequence. - /// - /// Used by `String.stripped` and `String.strippedLength` to remove - /// formatting codes for visible-width calculations. Compiling once - /// avoids per-call overhead in the hot rendering path. - nonisolated(unsafe) static let ansiRegex = /\u{1B}\[[0-9;]*[a-zA-Z]/ - // MARK: - SGR Style Codes /// Named constants for ANSI SGR (Select Graphic Rendition) attribute codes.