kill formatMinimalBadgeCount entirely

pull/21833/head
Matthew Hodgson 2020-09-10 13:56:46 +01:00
parent 89d05ac952
commit 5ecc3f4398
1 changed files with 0 additions and 11 deletions

View File

@ -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+";
}