Skip to content

Commit 2aba3c0

Browse files
steffenaggerdurran
authored andcommitted
Unused variables & initializer removed from ObjectId
1 parent dcb391a commit 2aba3c0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/objectid.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ import { deprecate, isUint8Array, randomBytes } from './parser/utils';
55
// Regular expression that checks for hex value
66
const checkForHexRegExp = new RegExp('^[0-9a-fA-F]{24}$');
77

8-
// Precomputed hex table enables speedy hex string conversion
9-
const hexTable: string[] = [];
10-
for (let i = 0; i < 256; i++) {
11-
hexTable[i] = (i <= 15 ? '0' : '') + i.toString(16);
12-
}
13-
14-
// Lookup tables
15-
const decodeLookup: number[] = [];
16-
let i = 0;
17-
while (i < 10) decodeLookup[0x30 + i] = i++;
18-
while (i < 16) decodeLookup[0x41 - 10 + i] = decodeLookup[0x61 - 10 + i] = i++;
19-
208
// Unique sequence for the current process (initialized on first use)
219
let PROCESS_UNIQUE: Uint8Array | null = null;
2210

0 commit comments

Comments
 (0)