From 2717d9ecafe3e69071f5a90478bb8924d0dbc468 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 29 May 2012 15:32:11 +0000 Subject: [PATCH] Removed unused methods git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@1343776 13f79535-47bb-0310-9956-ffa450edef68 --- .../fop/fonts/truetype/TTFSubSetFile.java | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java b/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java index e217ec1b6..094716a66 100644 --- a/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java +++ b/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java @@ -753,32 +753,6 @@ public class TTFSubSetFile extends TTFFile { output[pos + 3] = b4; } - /** - * Read a signed short value at given position - */ - private short readShort(int pos) { - int ret = readUShort(pos); - return (short)ret; - } - - /** - * Read a unsigned short value at given position - */ - private int readUShort(int pos) { - int ret = output[pos]; - if (ret < 0) { - ret += 256; - } - ret = ret << 8; - if (output[pos + 1] < 0) { - ret |= output[pos + 1] + 256; - } else { - ret |= output[pos + 1]; - } - - return ret; - } - /** * Create a padding in the fontfile to align * on a 4-byte boundary @@ -805,9 +779,6 @@ public class TTFSubSetFile extends TTFFile { return (i - 1); } - private int log2(int num) { - return (int)(Math.log(num) / Math.log(2)); - } private void updateCheckSum(int tableStart, int tableSize, TTFTableName tableName) { int checksum = getCheckSum(output, tableStart, tableSize); -- 2.39.5