mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Get rid of advanceDEPRECATED
This commit is contained in:
parent
6998e12f7a
commit
dc8bf15a86
1 changed files with 3 additions and 6 deletions
|
|
@ -20,10 +20,6 @@ class MakiFile {
|
|||
this._i = 0;
|
||||
}
|
||||
|
||||
advanceDEPRECATED(n) {
|
||||
this._i += n;
|
||||
}
|
||||
|
||||
readUInt32LE() {
|
||||
const int = this._buffer.readUInt32LE(this._i);
|
||||
this._i += 4;
|
||||
|
|
@ -53,7 +49,9 @@ class MakiFile {
|
|||
}
|
||||
|
||||
getNextNBytesDEPRECATED(length) {
|
||||
return this._buffer.slice(this._i, this._i + length);
|
||||
const bytes = this._buffer.slice(this._i, this._i + length);
|
||||
this._i += lengthn;
|
||||
return bytes;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -203,7 +201,6 @@ function readBindings(makiFile) {
|
|||
function decodeCode({ makiFile, classes, variables, methods, bindings }) {
|
||||
const length = makiFile.readUInt32LE();
|
||||
const commandsBuffer = makiFile.getNextNBytesDEPRECATED(length);
|
||||
makiFile.advanceDEPRECATED(length);
|
||||
|
||||
let pos = 0;
|
||||
const localFunctions = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue