mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-01 20:07:22 +02:00
Remove unused helper functions in src/core/core_utils.js
After recent patches, that added more `DataView` usage, these helper functions are now unused.
This commit is contained in:
parent
c92d4be973
commit
2e5ab9c9eb
@ -275,28 +275,6 @@ function log2(x) {
|
|||||||
return x > 0 ? Math.ceil(Math.log2(x)) : 0;
|
return x > 0 ? Math.ceil(Math.log2(x)) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function readInt8(data, offset) {
|
|
||||||
return (data[offset] << 24) >> 24;
|
|
||||||
}
|
|
||||||
|
|
||||||
function readInt16(data, offset) {
|
|
||||||
return ((data[offset] << 24) | (data[offset + 1] << 16)) >> 16;
|
|
||||||
}
|
|
||||||
|
|
||||||
function readUint16(data, offset) {
|
|
||||||
return (data[offset] << 8) | data[offset + 1];
|
|
||||||
}
|
|
||||||
|
|
||||||
function readUint32(data, offset) {
|
|
||||||
return (
|
|
||||||
((data[offset] << 24) |
|
|
||||||
(data[offset + 1] << 16) |
|
|
||||||
(data[offset + 2] << 8) |
|
|
||||||
data[offset + 3]) >>>
|
|
||||||
0
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Checks if ch is one of the following characters: SPACE, TAB, CR or LF.
|
// Checks if ch is one of the following characters: SPACE, TAB, CR or LF.
|
||||||
function isWhiteSpace(ch) {
|
function isWhiteSpace(ch) {
|
||||||
return ch === 0x20 || ch === 0x09 || ch === 0x0d || ch === 0x0a;
|
return ch === 0x20 || ch === 0x09 || ch === 0x0d || ch === 0x0a;
|
||||||
@ -804,10 +782,6 @@ export {
|
|||||||
ParserEOFException,
|
ParserEOFException,
|
||||||
parseXFAPath,
|
parseXFAPath,
|
||||||
PDF_VERSION_REGEXP,
|
PDF_VERSION_REGEXP,
|
||||||
readInt16,
|
|
||||||
readInt8,
|
|
||||||
readUint16,
|
|
||||||
readUint32,
|
|
||||||
recoverJsURL,
|
recoverJsURL,
|
||||||
RESOURCES_KEYS_OPERATOR_LIST,
|
RESOURCES_KEYS_OPERATOR_LIST,
|
||||||
RESOURCES_KEYS_TEXT_CONTENT,
|
RESOURCES_KEYS_TEXT_CONTENT,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user