diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2012-05-29 15:32:11 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2012-05-29 15:32:11 +0000 |
commit | 2717d9ecafe3e69071f5a90478bb8924d0dbc468 (patch) | |
tree | 7978a59e16283638527e0a5519eb8563dd66609f | |
parent | dcb82fefaae13675bb901602d93e085ef0300edf (diff) | |
download | xmlgraphics-fop-2717d9ecafe3e69071f5a90478bb8924d0dbc468.tar.gz xmlgraphics-fop-2717d9ecafe3e69071f5a90478bb8924d0dbc468.zip |
Removed unused methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@1343776 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java | 29 |
1 files changed, 0 insertions, 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 @@ -754,32 +754,6 @@ public class TTFSubSetFile extends TTFFile { } /** - * 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); |