diff options
author | Holger Zickner <[email protected]> | 2004-10-04 12:50:38 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-10-04 12:50:38 +0000 |
commit | 8ad645f69e8aea3d8a8a4b601e3f940165ad9041 (patch) | |
tree | c5f537537e7cc1cad865111ab4307ffefecc307c /src/jake2/util/Lib.java | |
parent | 8d9a3e9d9db1adce0afd2e01062651d035d56db8 (diff) |
remove Lib.linesplit()
Diffstat (limited to 'src/jake2/util/Lib.java')
-rw-r--r-- | src/jake2/util/Lib.java | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/jake2/util/Lib.java b/src/jake2/util/Lib.java index ab3a40e..ab0d4ae 100644 --- a/src/jake2/util/Lib.java +++ b/src/jake2/util/Lib.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 09.12.2003 by RST. -// $Id: Lib.java,v 1.6 2004-09-22 19:22:13 salomo Exp $ +// $Id: Lib.java,v 1.7 2004-10-04 12:50:38 hzi Exp $ package jake2.util; @@ -30,7 +30,6 @@ import jake2.qcommon.FS; import java.io.*; import java.nio.*; -import java.util.StringTokenizer; import net.java.games.jogl.util.BufferUtils; @@ -238,23 +237,7 @@ public class Lib { return in.substring(0, pos); return ""; } - public static String[] linesplit(String in) { - - StringTokenizer tk = new StringTokenizer(in, "\r\n"); - - int count = tk.countTokens(); - if (count == 0) - return new String[] { - }; - - String result[] = new String[count]; - - for (int i = 0; tk.hasMoreTokens(); i++) { - result[i] = tk.nextToken(); - } - - return result; - } + public static int rename(String oldn, String newn) { try { File f1 = new File(oldn); |