pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1790895 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType0Font.java
Date Mon, 10 Apr 2017 20:24:39 GMT
Author: tilman
Date: Mon Apr 10 20:24:39 2017
New Revision: 1790895

URL: http://svn.apache.org/viewvc?rev=1790895&view=rev
Log:
PDFBOX-2852: remove unused method, use JDK7 syntax

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType0Font.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType0Font.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType0Font.java?rev=1790895&r1=1790894&r2=1790895&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType0Font.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType0Font.java Mon
Apr 10 20:24:39 2017
@@ -46,7 +46,7 @@ public class PDType0Font extends PDFont
     private static final Log LOG = LogFactory.getLog(PDType0Font.class);
 
     private final PDCIDFont descendantFont;
-    private final Set<Integer> noUnicode = new HashSet<Integer>(); 
+    private final Set<Integer> noUnicode = new HashSet<>(); 
     private CMap cMap, cMapUCS2;
     private boolean isCMapPredefined;
     private boolean isDescendantCJK;
@@ -262,34 +262,6 @@ public class PDType0Font extends PDFont
     }
 
     /**
-     * Returns the name of CJK CMap represented by the given CIDSystemInfo, if any. 
-     */
-    private String getCJKCMap(PDCIDSystemInfo ros)
-    {
-        // CJK can fallback to using CIDSystemInfo
-        if (ros.getOrdering().equals("GB1"))
-        {
-            return "Adobe-GB1-0";
-        }
-        else if (ros.getOrdering().equals("CNS1"))
-        {
-            return "Adobe-CNS1-0";
-        }
-        else if (ros.getOrdering().equals("Japan1"))
-        {
-            return "Adobe-Japan1-1";
-        }
-        else if (ros.getOrdering().equals("Korea1"))
-        {
-            return "Adobe-Korea1-0";
-        }
-        else
-        {
-            throw new IllegalStateException();
-        }
-    }
-    
-    /**
      * Returns the PostScript name of the font.
      */
     public String getBaseFont()



Mime
View raw message