Skip to content

Commit

Permalink
Merge pull request #9988 from Snuffleupagus/rm-mainXRefEntriesOffset
Browse files Browse the repository at this point in the history
Remove the unused `PDFDocument.mainXRefEntriesOffset` method
  • Loading branch information
timvandermeij authored Aug 19, 2018
2 parents 160ca55 + 75923ea commit 88e87ce
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/core/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 88e87ce

Please sign in to comment.