Revert "Add a getArrayLookupTableFactory
helper function and use it to re-format src/core/{glyphlist, unicode}.js
"
This reverts commit 56fa6d414cb1115e03f9c1aa9f1d5bc52efcb7ac now that SystemJS is gone.
This commit is contained in:
parent
95bf9fc17f
commit
94c2d08975
@ -38,22 +38,6 @@ function getLookupTableFactory(initializer) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getArrayLookupTableFactory(initializer) {
|
|
||||||
let lookup;
|
|
||||||
return function () {
|
|
||||||
if (initializer) {
|
|
||||||
let arr = initializer();
|
|
||||||
initializer = null;
|
|
||||||
lookup = Object.create(null);
|
|
||||||
for (let i = 0, ii = arr.length; i < ii; i += 2) {
|
|
||||||
lookup[arr[i]] = arr[i + 1];
|
|
||||||
}
|
|
||||||
arr = null;
|
|
||||||
}
|
|
||||||
return lookup;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
class MissingDataException extends BaseException {
|
class MissingDataException extends BaseException {
|
||||||
constructor(begin, end) {
|
constructor(begin, end) {
|
||||||
super(`Missing data [${begin}, ${end})`, "MissingDataException");
|
super(`Missing data [${begin}, ${end})`, "MissingDataException");
|
||||||
@ -616,7 +600,6 @@ export {
|
|||||||
encodeToXmlString,
|
encodeToXmlString,
|
||||||
escapePDFName,
|
escapePDFName,
|
||||||
escapeString,
|
escapeString,
|
||||||
getArrayLookupTableFactory,
|
|
||||||
getInheritableProperty,
|
getInheritableProperty,
|
||||||
getLookupTableFactory,
|
getLookupTableFactory,
|
||||||
getNewAnnotationsMap,
|
getNewAnnotationsMap,
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user