Skip to content

Commit

Permalink
fix: remove unused exported function
Browse files Browse the repository at this point in the history
  • Loading branch information
lojjic committed Jul 10, 2023
1 parent ca1bec5 commit a45df5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/shared/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a45df5a

Please sign in to comment.