From a54ca8cfca7d88a954abcf43435ce3541c7322e9 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Wed, 28 Jan 2004 21:13:11 +0000 Subject: [PATCH] 2004-01-28 Michael Koch * gnu/java/lang/ClassHelper.java (getPackagePortion): Removed. From-SVN: r76809 --- libjava/ChangeLog | 5 +++++ libjava/gnu/java/lang/ClassHelper.java | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 9d68cb80669..8b1be41f7de 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-01-28 Michael Koch + + * gnu/java/lang/ClassHelper.java + (getPackagePortion): Removed. + 2004-01-28 Michael Koch * javax/swing/JComponent.java diff --git a/libjava/gnu/java/lang/ClassHelper.java b/libjava/gnu/java/lang/ClassHelper.java index 16d699e3453..7339d6bf5bc 100644 --- a/libjava/gnu/java/lang/ClassHelper.java +++ b/libjava/gnu/java/lang/ClassHelper.java @@ -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();