From 28ce8c6fb3521a9fd08a0026755892d9dc9e9caa Mon Sep 17 00:00:00 2001 From: Yigid BALABAN Date: Tue, 10 Sep 2024 18:33:58 +0300 Subject: [PATCH] remove redundant method asByteArray --- crypto.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crypto.js b/crypto.js index 39b3291..68f6046 100644 --- a/crypto.js +++ b/crypto.js @@ -164,12 +164,6 @@ function byteArray2int(bytes) { (bytes[3] << 24); } -function asByteArray() { - return Uint8Array.from( - this.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)) - ); -} - function asHexString() { return this.reduce( (str, byte) => str + byte.toString(16).padStart(2, "0"),