OSDN Git Service

2004-01-28 Michael Koch <konqueror@gmx.de>
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 2004 21:13:11 +0000 (21:13 +0000)
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jan 2004 21:13:11 +0000 (21:13 +0000)
* gnu/java/lang/ClassHelper.java
(getPackagePortion): Removed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76809 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/gnu/java/lang/ClassHelper.java

index 9d68cb8..8b1be41 100644 (file)
@@ -1,5 +1,10 @@
 2004-01-28  Michael Koch  <konqueror@gmx.de>
 
+       * gnu/java/lang/ClassHelper.java
+       (getPackagePortion): Removed.
+
+2004-01-28  Michael Koch  <konqueror@gmx.de>
+
        * javax/swing/JComponent.java
        (listenerList): Initalize globally.
        (ancestor_list): Removed.
index 16d699e..7339d6b 100644 (file)
@@ -75,20 +75,6 @@ public class ClassHelper
     return name.substring(lastInd + 1);
   }
 
-  /**
-   * Strip the last portion of the name (after the last dot).
-   *
-   * @param name the name to get package of
-   * @return the package name, or "" if no package
-   */
-  public static String getPackagePortion(String name)
-  {
-    int lastInd = name.lastIndexOf('.');
-    if (lastInd == -1)
-      return "";
-    return name.substring(0, lastInd);
-  }
-
   /** Cache of methods found in getAllMethods(). */
   private static Map allMethods = new HashMap();