You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2021/05/09 10:43:41 UTC
svn commit: r1889695 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
Author: lehmi
Date: Sun May 9 10:43:41 2021
New Revision: 1889695
URL: http://svn.apache.org/viewvc?rev=1889695&view=rev
Log:
PDFBOX-5163: remove dubious code
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java?rev=1889695&r1=1889694&r2=1889695&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java Sun May 9 10:43:41 2021
@@ -292,21 +292,6 @@ public abstract class BaseParser
}
COSBase value = parseCOSDictionaryValue();
skipSpaces();
- if (((char) seqSource.peek()) == 'd')
- {
- // if the next string is 'def' then we are parsing a cmap stream
- // and want to ignore it, otherwise throw an exception.
- String potentialDEF = readString();
- if (!potentialDEF.equals(DEF))
- {
- seqSource.unread(potentialDEF.getBytes(ISO_8859_1));
- }
- else
- {
- skipSpaces();
- }
- }
-
if (value == null)
{
LOG.warn("Bad dictionary declaration at offset " + seqSource.getPosition());