Merge pull request #21037 from Snuffleupagus/rm-compilePostScriptToIR

Remove the unused `compilePostScriptToIR` function (PR 21023 follow-up)
This commit is contained in:
Jonas Jenwald 2026-04-04 10:59:29 +02:00 committed by GitHub
commit c7b17ecc26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
* Used when PSStackToTree fails to optimize the AST.
@ -829,8 +817,4 @@ function buildPostScriptProgramFunction(program, domain, range) {
return PSStackBasedInterpreter.build(program, domain, range);
}
export {
buildPostScriptJsFunction,
buildPostScriptProgramFunction,
compilePostScriptToIR,
};
export { buildPostScriptJsFunction, buildPostScriptProgramFunction };