mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Revert "Add a getArrayLookupTableFactory
helper function and use it to re-format src/core/{glyphlist, unicode}.js
"
This reverts commit 56fa6d414c
now that SystemJS is gone.
This commit is contained in:
parent
95bf9fc17f
commit
94c2d08975
2 changed files with 4533 additions and 4556 deletions
|
@ -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 {
|
||||
constructor(begin, end) {
|
||||
super(`Missing data [${begin}, ${end})`, "MissingDataException");
|
||||
|
@ -616,7 +600,6 @@ export {
|
|||
encodeToXmlString,
|
||||
escapePDFName,
|
||||
escapeString,
|
||||
getArrayLookupTableFactory,
|
||||
getInheritableProperty,
|
||||
getLookupTableFactory,
|
||||
getNewAnnotationsMap,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue