From eab59ea0213615429ce419330eb1bcacb1644234 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 20:31:06 -0400 Subject: [PATCH] Remove unused locale helpers (#39959) Co-authored-by: Kit Langton --- packages/tui/src/util/locale.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/tui/src/util/locale.ts b/packages/tui/src/util/locale.ts index 6f4bdbe50a..569484e373 100644 --- a/packages/tui/src/util/locale.ts +++ b/packages/tui/src/util/locale.ts @@ -16,19 +16,6 @@ export function datetime(input: number): string { return `${localTime} ยท ${localDate}` } -export function todayTimeOrDateTime(input: number): string { - const date = new Date(input) - const now = new Date() - const isToday = - date.getFullYear() === now.getFullYear() && date.getMonth() === now.getMonth() && date.getDate() === now.getDate() - - if (isToday) { - return time(input) - } else { - return datetime(input) - } -} - export function number(num: number): string { if (num >= 1000000) { return (num / 1000000).toFixed(1) + "M" @@ -108,9 +95,4 @@ export function truncateMiddle(str: string, maxLength: number = 35): string { return str.slice(0, keepStart) + ellipsis + str.slice(-keepEnd) } -export function pluralize(count: number, singular: string, plural: string): string { - const template = count === 1 ? singular : plural - return template.replace("{}", count.toString()) -} - export * as Locale from "./locale"