diff options
author | Elliott Hughes <enh@google.com> | 2010-01-27 17:06:42 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-01-27 17:06:42 -0800 |
commit | 8c7e05b66900808a96fc26903ac389a6c66b1674 (patch) | |
tree | 66b94cd2de73c884de13a65cda640f05f8132c8d /icu | |
parent | 5d3c2726845733767c83b9295a09d2cfb4e62fce (diff) | |
download | libcore-8c7e05b66900808a96fc26903ac389a6c66b1674.zip libcore-8c7e05b66900808a96fc26903ac389a6c66b1674.tar.gz libcore-8c7e05b66900808a96fc26903ac389a6c66b1674.tar.bz2 |
Remove commented-out code.
Mistakenly left in my previous change when I wasn't certain it was dead.
Diffstat (limited to 'icu')
-rw-r--r-- | icu/src/main/java/com/ibm/icu4jni/text/NativeDecimalFormat.java | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/icu/src/main/java/com/ibm/icu4jni/text/NativeDecimalFormat.java b/icu/src/main/java/com/ibm/icu4jni/text/NativeDecimalFormat.java index c8fc252..034491c 100644 --- a/icu/src/main/java/com/ibm/icu4jni/text/NativeDecimalFormat.java +++ b/icu/src/main/java/com/ibm/icu4jni/text/NativeDecimalFormat.java @@ -243,27 +243,7 @@ public class NativeDecimalFormat { String result = format(this.addr, value.toString(10), field, fieldType, null, 0); return buffer.append(result); } - /* - public StringBuffer format(Object value, StringBuffer buffer, FieldPosition field) { - if (!(value instanceof Number)) { - throw new IllegalArgumentException(); - } - if (buffer == null || field == null) { - throw new NullPointerException(); - } - String fieldType = getFieldType(field.getFieldAttribute()); - Number number = (Number) value; - } else if (number instanceof Double || number instanceof Float) { - double dv = number.doubleValue(); - String result = format(this.addr, dv, field, fieldType, null); - return buffer.append(result); - } else { - long lv = number.longValue(); - String result = format(this.addr, lv, field, fieldType, null); - return buffer.append(result); - } - } -*/ + public StringBuffer format(long value, StringBuffer buffer, FieldPosition field) { if (buffer == null || field == null) { throw new NullPointerException(); |