From bc499e4562b18aa471f3a522e577fa29808358b9 Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Sat, 3 Oct 2026 21:33:33 -0700 Subject: [PATCH] refactor(tui): remove unused monoTruncateMiddle (#52997) --- packages/tui/src/mini/mono.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/tui/src/mini/mono.ts b/packages/tui/src/mini/mono.ts index ed42568139b..a926c3b6104 100644 --- a/packages/tui/src/mini/mono.ts +++ b/packages/tui/src/mini/mono.ts @@ -253,11 +253,3 @@ export function monoTruncate(value: string, width: number, mono: boolean): strin if (width <= 3) return ".".repeat(Math.max(0, width)) return value.slice(0, width - 3) + "..." } - -export function monoTruncateMiddle(value: string, width: number, mono: boolean): string { - if (!mono || value.length <= width) return value - if (width <= 3) return ".".repeat(Math.max(0, width)) - const available = width - 3 - const left = Math.ceil(available / 2) - return value.slice(0, left) + "..." + value.slice(value.length - (available - left)) -}