pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1682973 - in /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf: KerningSubtable.java KerningTable.java
Date Mon, 01 Jun 2015 18:41:52 GMT
Author: lehmi
Date: Mon Jun  1 18:41:52 2015
New Revision: 1682973

URL: http://svn.apache.org/r1682973
Log:
PDFBOX-2806: removed unused parameters

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningSubtable.java
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningTable.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningSubtable.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningSubtable.java?rev=1682973&r1=1682972&r2=1682973&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningSubtable.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningSubtable.java Mon Jun
 1 18:41:52 2015
@@ -57,21 +57,20 @@ public class KerningSubtable extends TTF
     /**
      * This will read the required data from the stream.
      * 
-     * @param ttf The font that is being read.
      * @param data The stream to read the data from.
      * @param version The version of the table to be read
      * @throws IOException If there is an error reading the data.
      */
-    public void read(TrueTypeFont ttf, TTFDataStream data, int version) throws IOException
+    public void read(TTFDataStream data, int version) throws IOException
     {
         if (version == 0)
         {
-            readSubtable0(ttf, data);
+            readSubtable0(data);
         }
         else if (version == 1)
         {
             
-            readSubtable1(ttf, data);
+            readSubtable1(data);
         }
         else
         {
@@ -164,7 +163,7 @@ public class KerningSubtable extends TTF
         return pairs.getKerning(l, r);
     }
 
-    private void readSubtable0(TrueTypeFont ttf, TTFDataStream data) throws IOException
+    private void readSubtable0(TTFDataStream data) throws IOException
     {
         int version = data.readUnsignedShort();
         if (version != 0)
@@ -199,27 +198,27 @@ public class KerningSubtable extends TTF
         }
         if (format == 0)
         {
-            readSubtable0Format0(ttf, data);
+            readSubtable0Format0(data);
         }
         else if (format == 2)
         {
-            readSubtable0Format2(ttf, data);
+            readSubtable0Format2(data);
         }
     }
 
-    private void readSubtable0Format0(TrueTypeFont ttf, TTFDataStream data) throws IOException
+    private void readSubtable0Format0(TTFDataStream data) throws IOException
     {
         pairs = new PairData0Format0();
         pairs.read(data);
     }
 
-    private void readSubtable0Format2(TrueTypeFont ttf, TTFDataStream data) throws IOException
+    private void readSubtable0Format2(TTFDataStream data) throws IOException
     {
         throw new UnsupportedOperationException(
                 "Kerning table version 0 format 2 not yet supported.");
     }
 
-    private void readSubtable1(TrueTypeFont ttf, TTFDataStream data) throws IOException
+    private void readSubtable1(TTFDataStream data) throws IOException
     {
         throw new UnsupportedOperationException(
                 "Kerning table version 1 formats not yet supported.");

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningTable.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningTable.java?rev=1682973&r1=1682972&r2=1682973&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningTable.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/KerningTable.java Mon Jun  1
18:41:52 2015
@@ -64,7 +64,7 @@ public class KerningTable extends TTFTab
         for (int i = 0; i < numSubtables; ++i)
         {
             KerningSubtable subtable = new KerningSubtable();
-            subtable.read(ttf, data, version);
+            subtable.read(data, version);
             subtables[i] = subtable;
         }
         initialized = true;



Mime
View raw message