pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1792292 - /pdfbox/branches/2.0/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java
Date Sat, 22 Apr 2017 14:39:11 GMT
Author: tilman
Date: Sat Apr 22 14:39:11 2017
New Revision: 1792292

URL: http://svn.apache.org/viewvc?rev=1792292&view=rev
Log:
PDFBOX-2852: remove double code

Modified:
    pdfbox/branches/2.0/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java

Modified: pdfbox/branches/2.0/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java?rev=1792292&r1=1792291&r2=1792292&view=diff
==============================================================================
--- pdfbox/branches/2.0/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java
(original)
+++ pdfbox/branches/2.0/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java
Sat Apr 22 14:39:11 2017
@@ -73,17 +73,6 @@ public class TestCMapParser extends Test
         assertEquals("CID 520 from cidchar <0208> 520", strCID3, cMap.toCID(cid3));
     }
 
-    private int toInt(byte[] data)
-    {
-        int code = 0;
-        for (byte b : data)
-        {
-            code <<= 8;
-            code |= (b & 0xFF);
-        }
-        return code;
-    }
-
     /**
      * Test the parser against a valid, but poorly formatted CMap file.
      * @throws IOException If something went wrong



Mime
View raw message