Skip to content

Commit

Permalink
Revert "Add a getArrayLookupTableFactory helper function and use it…
Browse files Browse the repository at this point in the history
… to re-format `src/core/{glyphlist, unicode}.js`"

This reverts commit 56fa6d4 now that SystemJS is gone.
  • Loading branch information
Snuffleupagus committed Apr 16, 2021
1 parent fbd12b1 commit 0ba8de5
Show file tree
Hide file tree
Showing 3 changed files with 5,908 additions and 5,937 deletions.
17 changes: 0 additions & 17 deletions src/core/core_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,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})`);
Expand Down Expand Up @@ -445,7 +429,6 @@ export {
collectActions,
encodeToXmlString,
escapePDFName,
getArrayLookupTableFactory,
getInheritableProperty,
getLookupTableFactory,
isWhiteSpace,
Expand Down
Loading

0 comments on commit 0ba8de5

Please sign in to comment.