From 5ef5e6b4aa6d4703d00a8d592c498ce01a4bb9d3 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 2 Oct 2023 17:47:04 +0200 Subject: [PATCH] fix: make perf test seq and remove unused functions --- .../src/{performance.test.ts => performance.seq.test.ts} | 9 --------- 1 file changed, 9 deletions(-) rename tests/src/{performance.test.ts => performance.seq.test.ts} (96%) diff --git a/tests/src/performance.test.ts b/tests/src/performance.seq.test.ts similarity index 96% rename from tests/src/performance.test.ts rename to tests/src/performance.seq.test.ts index 1322bfd597..e049e217d9 100644 --- a/tests/src/performance.test.ts +++ b/tests/src/performance.seq.test.ts @@ -142,11 +142,6 @@ const tryMintExplicit = async (helper: UniqueHelper, signer: IKeyringPair, token return tokensCount; }; - -function sizeOfByteProperty(prop: IProperty) { - return sizeOfEncodedBytes(prop.key) + sizeOfEncodedBytes(prop.value!); -} - function sizeOfProperty(prop: IProperty) { return sizeOfEncodedStr(prop.key) + sizeOfEncodedStr(prop.value!); } @@ -169,7 +164,3 @@ function sizeOfEncodedStr(v: string) { const encoded = UTF8_ENCODER.encode(v); return sizeOfInt(encoded.length) + encoded.length; } - -function sizeOfEncodedBytes(bytes: Uint8Array | string) { - return sizeOfInt(bytes.length) + bytes.length; -}