mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-26 18:15:48 +02:00
Merge pull request #21037 from Snuffleupagus/rm-compilePostScriptToIR
Remove the unused `compilePostScriptToIR` function (PR 21023 follow-up)
This commit is contained in:
commit
c7b17ecc26
@ -516,18 +516,6 @@ class PsJsCompiler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} source
|
|
||||||
* @param {number[]} domain – flat [min0,max0, …]
|
|
||||||
* @param {number[]} range – flat [min0,max0, …]
|
|
||||||
* @returns {Float64Array|null}
|
|
||||||
*/
|
|
||||||
function compilePostScriptToIR(source, domain, range) {
|
|
||||||
return new PsJsCompiler(domain, range).compile(
|
|
||||||
parsePostScriptFunction(source)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Direct stack-based interpreter for a parsed PsProgram.
|
* Direct stack-based interpreter for a parsed PsProgram.
|
||||||
* Used when PSStackToTree fails to optimize the AST.
|
* Used when PSStackToTree fails to optimize the AST.
|
||||||
@ -829,8 +817,4 @@ function buildPostScriptProgramFunction(program, domain, range) {
|
|||||||
return PSStackBasedInterpreter.build(program, domain, range);
|
return PSStackBasedInterpreter.build(program, domain, range);
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export { buildPostScriptJsFunction, buildPostScriptProgramFunction };
|
||||||
buildPostScriptJsFunction,
|
|
||||||
buildPostScriptProgramFunction,
|
|
||||||
compilePostScriptToIR,
|
|
||||||
};
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user