This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: gnu.java.lang.ClassHelper


Hi list,


I just commited the attached patch to remove an unused method from 
gnu.java.lang.ClassHelper.


Michael


2004-01-28  Michael Koch  <konqueror@gmx.de>

	* gnu/java/lang/ClassHelper.java
	(getPackagePortion): Removed.

Index: gnu/java/lang/ClassHelper.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/lang/ClassHelper.java,v
retrieving revision 1.3
diff -u -b -B -r1.3 ClassHelper.java
--- gnu/java/lang/ClassHelper.java	17 Jun 2003 12:01:37 -0000	1.3
+++ gnu/java/lang/ClassHelper.java	28 Jan 2004 21:13:00 -0000
@@ -75,20 +75,6 @@
     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();
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]