mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
chore(repo): remove dead code and useless tests (#3375)
This commit is contained in:
1 parent
7e177a1c90
commit
1cd62eb661
1391 files changed
+783
-120415
No files matched your search
@@ -147,14 +147,6 @@ export function createSnowflakeGenerator(options: SnowflakeGeneratorOptions = {}
|
||||
return new SnowflakeGenerator(options);
|
||||
}
|
||||
|
||||
export function setDefaultSnowflakeGenerator(options: SnowflakeGeneratorOptions = {}): void {
|
||||
defaultGenerator = createSnowflakeGenerator(options);
|
||||
}
|
||||
|
||||
export function resetDefaultSnowflakeGenerator(): void {
|
||||
defaultGenerator = null;
|
||||
}
|
||||
|
||||
export function generateSnowflake(workerIdOrOptions?: number | SnowflakeGeneratorOptions): bigint {
|
||||
if (workerIdOrOptions !== undefined) {
|
||||
return new SnowflakeGenerator(workerIdOrOptions).generate();
|
||||
|
||||
Reference in new issue
Block a user