🗑 Remove unneeded code
This commit is contained in:
parent
f0cba0e955
commit
602b4b12d4
1 changed files with 0 additions and 3 deletions
|
@ -24,7 +24,6 @@ export default function getDecryptor([key0, key1, key2]: [number, number, number
|
|||
|
||||
return (encryptedChunk: Buffer) => {
|
||||
const decryptedChunk = Buffer.alloc(encryptedChunk.length);
|
||||
//const dvOut = new DataView(decryptedChunk.buffer);
|
||||
|
||||
for (let i = 0; i < encryptedChunk.length; i += 1) {
|
||||
//read byte
|
||||
|
@ -39,10 +38,8 @@ export default function getDecryptor([key0, key1, key2]: [number, number, number
|
|||
if (position + i < 12) {
|
||||
//do nothing
|
||||
} else if (position + i >= 12 && position < 12) {
|
||||
//dvOut.setUint8(position + i - 12, curChar);
|
||||
decryptedChunk.writeUInt8(curChar, position + i - 12);
|
||||
} else {
|
||||
//dvOut.setUint8(i, curChar);
|
||||
decryptedChunk.writeUInt8(curChar, i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue