Format.java: Cleaned up imports.
authorTom Tromey <tromey@redhat.com>
Wed, 5 May 2004 06:52:56 +0000 (06:52 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 5 May 2004 06:52:56 +0000 (06:52 +0000)
2004-05-05  Tom Tromey  <tromey@redhat.com>

* java/text/Format.java: Cleaned up imports.
* java/text/DecimalFormat.java: Cleaned up imports.
* java/security/SecureRandom.java: Cleaned up imports.
(SecureRandom): Removed unused variable.
* java/security/UnresolvedPermission.java: Cleaned up imports.
* java/util/Date.java (parse): Removed unused variable.
* java/util/ResourceBundle.java: Cleaned up imports.
(getBundle): Removed unused variable.
(tryBundle): Likewise.
* java/util/regex/Pattern.java (Pattern): Removed unused constructor.

From-SVN: r81503

libjava/ChangeLog
libjava/java/security/SecureRandom.java
libjava/java/security/UnresolvedPermission.java
libjava/java/text/Format.java
libjava/java/util/Date.java
libjava/java/util/ResourceBundle.java
libjava/java/util/regex/Pattern.java

index 3e419de7c668b962f30e649942251b9a451562b8..20362a972c41ac6b611c3b144f1cc875ba733a3f 100644 (file)
@@ -1,3 +1,16 @@
+2004-05-05  Tom Tromey  <tromey@redhat.com>
+
+       * java/text/Format.java: Cleaned up imports.
+       * java/text/DecimalFormat.java: Cleaned up imports.
+       * java/security/SecureRandom.java: Cleaned up imports.
+       (SecureRandom): Removed unused variable.
+       * java/security/UnresolvedPermission.java: Cleaned up imports.
+       * java/util/Date.java (parse): Removed unused variable.
+       * java/util/ResourceBundle.java: Cleaned up imports.
+       (getBundle): Removed unused variable.
+       (tryBundle): Likewise.
+       * java/util/regex/Pattern.java (Pattern): Removed unused constructor.
+
 2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>
 
        * java/text/SimpleDateFormat.java:
index 56f4b22672c43d9901813ae163d364dd85370cbc..d7fda7ba744e262fcaee084a240c8a74bc9858f1 100644 (file)
@@ -37,12 +37,11 @@ exception statement from your version. */
 
 package java.security;
 
-import java.io.Serializable;
-import java.util.Random;
-import java.util.Enumeration;
-
 import gnu.java.security.Engine;
 
+import java.util.Enumeration;
+import java.util.Random;
+
 /**
  * An interface to a cryptographically secure pseudo-random number
  * generator (PRNG). Random (or at least unguessable) numbers are used
@@ -94,7 +93,7 @@ public class SecureRandom extends Random
     String key;
 
     String classname = null;
-    int i, flag = 0;
+    int i;
     Enumeration e;
     for (i = 0; i < p.length; i++)
       {
index 954b562c773546dd94b71ccac139198d0a30ad8d..7efb35582fc3e660a1165a2705cd4503f067c360 100644 (file)
@@ -37,7 +37,6 @@ exception statement from your version. */
 
 package java.security;
 
-import java.io.Serializable;
 // All uses of Certificate in this file refer to the one in the listed
 // package, not this one.
 import java.security.cert.Certificate;
index 0cef00a8d07bb34004d01c7d5926e7cec4dcb800..7bc389eb71e936b96501c06213e99d4402d76043 100644 (file)
@@ -39,11 +39,6 @@ exception statement from your version. */
 package java.text;
 
 import gnu.java.text.FormatCharacterIterator;
-
-import java.util.Set;
-import java.util.Map;
-import java.util.HashSet;
-import java.util.HashMap;
 import java.io.Serializable;
 
 /**
index c25b503dcde3ae3388c463ac791413eddf15ad12..43ae96990825fdd14cf0701c1dac0f87b190e3fa 100644 (file)
@@ -460,7 +460,6 @@ public class Date implements Cloneable, Comparable, java.io.Serializable
                        int curYear = 1900 + new Date().getYear();
                        int firstYear = curYear - 80;
                        year = firstYear / 100 * 100 + num;
-                       int yx = year;
                        if (year < firstYear)
                          year += 100;
                      }
index 6663bd4533ee6f6b0b0068fd0aeeab156aa65e6e..264152a8cb7f505903784ec1b730095b4af8e582 100644 (file)
@@ -42,7 +42,6 @@ import java.lang.ref.Reference;
 import java.lang.ref.SoftReference;
 import java.io.InputStream;
 import java.io.IOException;
-import gnu.classpath.Configuration;
 
 /**
  * A resource bundle contains locale-specific data. If you need localized
@@ -345,7 +344,6 @@ public abstract class ResourceBundle
     else if (cache.containsKey(name))
       {
        Reference ref = (Reference) cache.get(name);
-       ResourceBundle result = null;
        // If REF is null, that means that we added a `null' value to
        // the hash map.  That means we failed to find the bundle
        // previously, and we cached that fact.  The JDK does this, so
@@ -440,7 +438,6 @@ public abstract class ResourceBundle
     if (cache.containsKey(localizedName))
       {
        Reference ref = (Reference) cache.get(localizedName);
-       ResourceBundle result = null;
        // If REF is null, that means that we added a `null' value to
        // the hash map.  That means we failed to find the bundle
        // previously, and we cached that fact.  The JDK does this, so
index 779103bdcb5828099bba4c42d0b4213c804d8892..174bdae58788f7eadbd8999b6b2a307bca88a62c 100644 (file)
@@ -67,12 +67,6 @@ public class Pattern implements Serializable
 
   private final RE re;
 
-  private Pattern (String regex)
-    throws PatternSyntaxException
-  {
-    this (regex, 0);
-  }
-
   private Pattern (String regex, int flags)
     throws PatternSyntaxException
   {