remove redundant method asByteArray

This commit is contained in:
yigid balaban 2024-09-10 18:33:58 +03:00
parent 4fcdcb65bd
commit 28ce8c6fb3
Signed by: fyb
GPG Key ID: E21FEB2C244CB7EB

View File

@ -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"),