refactor(tui): remove unused monoTruncateMiddle (#52997)

This commit is contained in:
Kit Langton
2026-10-03 21:33:33 -07:00
committed by GitHub
Unverified
parent fa373ddb51
commit bc499e4562
-8
View File
@@ -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))
}