Merge pull request #9988 from Snuffleupagus/rm-mainXRefEntriesOffset

Remove the unused `PDFDocument.mainXRefEntriesOffset` method
This commit is contained in:
Tim van der Meij 2018-08-19 16:04:56 +02:00 committed by GitHub
commit 88e87ce240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -487,15 +487,7 @@ var PDFDocument = (function PDFDocumentClosure() {
// shadow the prototype getter with a data property
return shadow(this, 'startXRef', startXRef);
},
get mainXRefEntriesOffset() {
var mainXRefEntriesOffset = 0;
var linearization = this.linearization;
if (linearization) {
mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
}
// shadow the prototype getter with a data property
return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
},
// Find the header, remove leading garbage and setup the stream
// starting from the header.
checkHeader: function PDFDocument_checkHeader() {