From 5ecc3f439803a36b0ab2fe41bb2150cbadc91062 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 10 Sep 2020 13:56:46 +0100 Subject: [PATCH] kill formatMinimalBadgeCount entirely --- src/utils/FormattingUtils.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/utils/FormattingUtils.ts b/src/utils/FormattingUtils.ts index 52f8bfcfa2..1fe3669f26 100644 --- a/src/utils/FormattingUtils.ts +++ b/src/utils/FormattingUtils.ts @@ -119,14 +119,3 @@ export function formatCommaSeparatedList(items: string[], itemLimit?: number): s return _t("%(items)s and %(lastItem)s", { items: items.join(', '), lastItem: lastItem }); } } - -/** - * Formats a number into a 'minimal' badge count (9, 98, 99+). - * @param count The number to convert - * @returns The badge count, stringified. - */ -export function formatMinimalBadgeCount(count: number): string { - // we specifically go from "98" to "99+" - if (count < 99) return count.toString(); - return "99+"; -}