Skip to content

Commit

Permalink
Merge pull request #337 from veraPDF/remove_methods
Browse files Browse the repository at this point in the history
Remove unnecessary methods
  • Loading branch information
MaximPlusov authored Feb 2, 2024
2 parents 41dc152 + 12f87e1 commit c1f34f5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public class PBCosDocument extends PBCosObject implements CosDocument {
private final boolean isOptionalContentPresent;
private final boolean isLinearised;
private final int postEOFDataSize;
private final Boolean doesInfoMatchXMP;
private final String firstPageID;
private final String lastID;
private final boolean needsRendering;
Expand Down Expand Up @@ -131,7 +130,6 @@ public PBCosDocument(COSDocument cosDocument, PDFAFlavour flavour) {
this.firstPageID = null;
}
this.isLinearised = cosDocument.getTrailer() != cosDocument.getLastTrailer() && cosDocument.isLinearized();
this.doesInfoMatchXMP = XMPChecker.doesInfoMatchXMP(cosDocument);
this.needsRendering = this.getNeedsRenderingValue();
}

Expand Down Expand Up @@ -255,14 +253,6 @@ public Boolean getisLinearized() {
return Boolean.valueOf(this.isLinearised);
}

/**
* @return true if XMP content matches Info dictionary content
*/
@Override
public Boolean getdoesInfoMatchXMP() {
return this.doesInfoMatchXMP;
}

@Override
public Boolean getMarked() {
if (this.catalog != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,6 @@ public Boolean getcontainsAlternatePresentations() {
return Boolean.FALSE;
}

@Override
public Boolean getvalidPDF() {
// TODO: implement me
return Boolean.TRUE;
}

private List<PDOCProperties> getOCProperties() {
if (this.catalog != null) {
PDOptionalContentProperties pBoxOCProperties = this.catalog.getOCProperties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,6 @@ public PBoxPDStructElem(COSDictionary structElemDictionary, TaggedPDFRoleMapHelp
this.roleMapHelper = roleMapHelper;
}

/**
* @return Type entry of current structure element
*/
@Override
public String getType() {
COSBase value = ((COSDictionary) this.simplePDObject).getDictionaryObject(COSName.TYPE);
if (value instanceof COSName) {
return ((COSName) value).getName();
}
LOGGER.log(java.util.logging.Level.INFO, "In struct element type expected 'COSName' but got: " + value.getClass().getSimpleName());
return null;
}

@Override
public String getkidsStandardTypes() {
return this.getChildrenStandardTypes()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,6 @@ private List<CosUnicodeName> getRoleMapNames() {
return Collections.emptyList();
}

@Override
public String gettopLevelFirstElementStandardType() {
if (this.children == null) {
this.children = parseChildren();
}

if (!this.children.isEmpty()) {
return this.children.get(0).getstandardType();
}
return null;
}

@Override
public String getfirstChildStandardTypeNamespaceURL() {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ public void testIsLinearized() {
Assert.assertFalse(((CosDocument) actual).getisLinearized().booleanValue());
}

@Test
public void testInfoMatchXMP() {
Assert.assertTrue(((CosDocument) actual).getdoesInfoMatchXMP().booleanValue());
}

@Test
public void testTrailerLink() {
List<? extends Object> trailer = actual.getLinkedObjects(PBCosDocument.TRAILER);
Expand Down

0 comments on commit c1f34f5

Please sign in to comment.