Remove the unused compilePostScriptToIR function (PR 21023 follow-up)

This function was added in PR 21010, and it became unused in PR 21023.
This commit is contained in:
Jonas Jenwald 2026-04-03 22:47:12 +02:00
parent 5347c22703
commit 4cf0bf410b

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 };