Remove CFFCompiler.compileGlobalSubrIndex since it's completely unused

This method was originally added in PR 1320, eleven years ago, however it doesn't appear to ever have been used (not even from the start).
Furthermore, this method also tries to access a property that doesn't exist (`this.out`) and then call a method that also doesn't exist (`writeByteArray`).
This commit is contained in:
Jonas Jenwald 2023-04-15 10:26:56 +02:00
parent ab2773416b
commit 0ce568e789

View File

@ -1742,11 +1742,6 @@ class CFFCompiler {
return this.compileIndex(stringIndex);
}
compileGlobalSubrIndex() {
const globalSubrIndex = this.cff.globalSubrIndex;
this.out.writeByteArray(this.compileIndex(globalSubrIndex));
}
compileCharStrings(charStrings) {
const charStringsIndex = new CFFIndex();
for (let i = 0; i < charStrings.count; i++) {