From a45df5a4f6eb11d87e74a8006699eab79f911dd0 Mon Sep 17 00:00:00 2001 From: Jason Johnston Date: Mon, 10 Jul 2023 12:30:20 -0600 Subject: [PATCH] fix: remove unused exported function --- packages/shared/src/utils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/shared/src/utils.ts b/packages/shared/src/utils.ts index db1eaa1f..04be1271 100644 --- a/packages/shared/src/utils.ts +++ b/packages/shared/src/utils.ts @@ -13,14 +13,10 @@ export function getBucketEndForCodePoint (codePoint: number) { return (codePoint & BUCKET_START_MASK) + BUCKET_SIZE - 1; } -export function getPlaneForCodePoint(codePoint: number): number { - return (codePoint & 0xff0000) / 0x10000 -} - export function getBucketJsonPathForCodePoint(codePoint: number): string { const start = getBucketStartForCodePoint(codePoint).toString(16) const end = getBucketEndForCodePoint(codePoint).toString(16) - return `codepoint-index/plane${getPlaneForCodePoint(codePoint)}/${start}-${end}.json` + return `codepoint-index/plane${codePoint >> 16}/${start}-${end}.json` } const COVERAGE_ENCODING_BITS_PER_CHAR = 6