Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

removed JAR command from ftpc - produces warnings and is not used by YaCy see http://forum.yacy-websuche.de/viewtopic.php?f=5&t=193&hilit=

orbiterec817a2ff554
diff --git a/source/de/anomic/net/ftpc.java b/source/de/anomic/net/ftpc.java
index a8d096fd3..0ce27f2bd 100644
--- a/source/de/anomic/net/ftpc.java
+++ b/source/de/anomic/net/ftpc.java
@@ -269,14 +269,6 @@ public class ftpc {
st = null;
return args;
}
-
- private static String[] shift(String args[]) {
- if ((args == null) || (args.length == 0)) return args; else {
- String[] newArgs = new String[args.length-1];
- System.arraycopy(args, 1, newArgs, 0, args.length-1);
- return newArgs;
- }
- }
class cl extends ClassLoader {
@@ -638,12 +630,20 @@ public class ftpc {
return true;
}
+ /*
+ private static String[] shift(String args[]) {
+ if ((args == null) || (args.length == 0)) return args; else {
+ String[] newArgs = new String[args.length-1];
+ System.arraycopy(args, 1, newArgs, 0, args.length-1);
+ return newArgs;
+ }
+ }
public boolean JAR() {
- /*Sun proprietary API may be removed in a future Java release*/
+ //Sun proprietary API may be removed in a future Java release
sun.tools.jar.Main.main(shift(cmd));
return true;
}
-
+ */
public boolean JJENCODE() {
if (cmd.length != 2) {