From da43b8e0811a67b80fb20c2c9719a4cacca55a78 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 6 Oct 2006 23:08:13 +0000 Subject: [PATCH] ICU-5410 Remove unused code. X-SVN-Rev: 20514 --- .../icu/charset/UConverterAliasDataReader.java | 18 +++++++++--------- .../ibm/icu/charset/UConverterDataReader.java | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/icu4j/src/com/ibm/icu/charset/UConverterAliasDataReader.java b/icu4j/src/com/ibm/icu/charset/UConverterAliasDataReader.java index a0f1eeb4aa0..eb14f5bcd5d 100644 --- a/icu4j/src/com/ibm/icu/charset/UConverterAliasDataReader.java +++ b/icu4j/src/com/ibm/icu/charset/UConverterAliasDataReader.java @@ -11,7 +11,7 @@ package com.ibm.icu.charset; import java.io.*; import com.ibm.icu.impl.ICUBinary; -import com.ibm.icu.impl.ICUDebug; + /* Format of cnvalias.icu ----------------------------------------------------- * @@ -123,7 +123,7 @@ import com.ibm.icu.impl.ICUDebug; */ final class UConverterAliasDataReader implements ICUBinary.Authenticate { - private final static boolean debug = ICUDebug.enabled("UConverterAliasDataReader"); +// private final static boolean debug = ICUDebug.enabled("UConverterAliasDataReader"); /** *

Protected constructor.

@@ -133,15 +133,15 @@ final class UConverterAliasDataReader implements ICUBinary.Authenticate { */ protected UConverterAliasDataReader(InputStream inputStream) throws IOException{ - if(debug) System.out.println("Bytes in inputStream " + inputStream.available()); + //if(debug) System.out.println("Bytes in inputStream " + inputStream.available()); - unicodeVersion = ICUBinary.readHeader(inputStream, DATA_FORMAT_ID, this); + /*unicodeVersion = */ICUBinary.readHeader(inputStream, DATA_FORMAT_ID, this); - if(debug) System.out.println("Bytes left in inputStream " +inputStream.available()); + //if(debug) System.out.println("Bytes left in inputStream " +inputStream.available()); dataInputStream = new DataInputStream(inputStream); - if(debug) System.out.println("Bytes left in dataInputStream " +dataInputStream.available()); + //if(debug) System.out.println("Bytes left in dataInputStream " +dataInputStream.available()); } // protected methods ------------------------------------------------- @@ -194,9 +194,9 @@ final class UConverterAliasDataReader implements ICUBinary.Authenticate { && version[2] == DATA_FORMAT_VERSION[2]; } - public byte[] getUnicodeVersion(){ + /*byte[] getUnicodeVersion(){ return unicodeVersion; - } + }*/ // private data members ------------------------------------------------- @@ -205,7 +205,7 @@ final class UConverterAliasDataReader implements ICUBinary.Authenticate { */ private DataInputStream dataInputStream; - private byte[] unicodeVersion; +// private byte[] unicodeVersion; /** * File format version that this class understands. diff --git a/icu4j/src/com/ibm/icu/charset/UConverterDataReader.java b/icu4j/src/com/ibm/icu/charset/UConverterDataReader.java index 9e7db1c2638..6a7b85c9840 100644 --- a/icu4j/src/com/ibm/icu/charset/UConverterDataReader.java +++ b/icu4j/src/com/ibm/icu/charset/UConverterDataReader.java @@ -420,7 +420,7 @@ final class UConverterDataReader implements ICUBinary.Authenticate { throws IOException{ //if(debug) System.out.println("Bytes in inputStream " + inputStream.available()); - unicodeVersion = ICUBinary.readHeader(inputStream, DATA_FORMAT_ID, this); + /*unicodeVersion = */ICUBinary.readHeader(inputStream, DATA_FORMAT_ID, this); //if(debug) System.out.println("Bytes left in inputStream " +inputStream.available()); @@ -518,19 +518,19 @@ final class UConverterDataReader implements ICUBinary.Authenticate { return tables; } - byte[] getDataFormatVersion(){ + byte[] getDataFormatVersion(){ return DATA_FORMAT_VERSION; } /** * Inherited method */ - public boolean isDataVersionAcceptable(byte version[]){ + public boolean isDataVersionAcceptable(byte version[]){ return version[0] == DATA_FORMAT_VERSION[0]; } - byte[] getUnicodeVersion(){ +/* byte[] getUnicodeVersion(){ return unicodeVersion; - } + }*/ // private data members ------------------------------------------------- /** @@ -538,7 +538,7 @@ final class UConverterDataReader implements ICUBinary.Authenticate { */ private DataInputStream dataInputStream; - private byte[] unicodeVersion; +// private byte[] unicodeVersion; /** * File format version that this class understands.