forked from I2P_Developers/i2p.i2p
remove unused private items (eclipse)
This commit is contained in:
@ -167,8 +167,6 @@ abstract class ExtensionHandler {
|
||||
private static final int TYPE_DATA = 1;
|
||||
private static final int TYPE_REJECT = 2;
|
||||
|
||||
private static final int CHUNK_SIZE = 16*1024;
|
||||
|
||||
/**
|
||||
* REF: BEP 9
|
||||
* @since 0.8.4
|
||||
@ -253,9 +251,11 @@ abstract class ExtensionHandler {
|
||||
sendMessage(peer, TYPE_REQUEST, piece);
|
||||
}
|
||||
|
||||
/****
|
||||
private static void sendReject(Peer peer, int piece) {
|
||||
sendMessage(peer, TYPE_REJECT, piece);
|
||||
}
|
||||
****/
|
||||
|
||||
/** REQUEST and REJECT are the same except for message type */
|
||||
private static void sendMessage(Peer peer, int type, int piece) {
|
||||
|
@ -71,10 +71,11 @@ public class Snark
|
||||
//public static int debug = NOTICE;
|
||||
|
||||
// Whether or not to ask the user for commands while sharing
|
||||
private static boolean command_interpreter = true;
|
||||
//private static boolean command_interpreter = true;
|
||||
|
||||
private static final String newline = System.getProperty("line.separator");
|
||||
|
||||
/****
|
||||
private static final String copyright =
|
||||
"The Hunting of the Snark Project - Copyright (C) 2003 Mark J. Wielaard"
|
||||
+ newline + newline
|
||||
@ -90,10 +91,12 @@ public class Snark
|
||||
"Press return for help. Type \"quit\" and return to stop.";
|
||||
private static final String help =
|
||||
"Commands: 'info', 'list', 'quit'.";
|
||||
****/
|
||||
|
||||
// String indicating main activity
|
||||
String activity = "Not started";
|
||||
|
||||
/****
|
||||
private static class OOMListener implements I2PThread.OOMEventListener {
|
||||
public void outOfMemory(OutOfMemoryError err) {
|
||||
try {
|
||||
@ -106,6 +109,7 @@ public class Snark
|
||||
}
|
||||
|
||||
}
|
||||
****/
|
||||
|
||||
/******** No, not maintaining a command-line client
|
||||
|
||||
@ -597,10 +601,12 @@ public class Snark
|
||||
_util.disconnect();
|
||||
}
|
||||
|
||||
/****
|
||||
private static Snark parseArguments(String[] args)
|
||||
{
|
||||
return parseArguments(args, null, null);
|
||||
}
|
||||
****/
|
||||
|
||||
// Accessors
|
||||
|
||||
@ -907,7 +913,7 @@ public class Snark
|
||||
}
|
||||
else if (args[i].equals("--no-commands"))
|
||||
{
|
||||
command_interpreter = false;
|
||||
//command_interpreter = false;
|
||||
i++;
|
||||
}
|
||||
//else if (args[i].equals("--eepproxy"))
|
||||
@ -1077,7 +1083,7 @@ public class Snark
|
||||
}
|
||||
}
|
||||
|
||||
private boolean allocating = false;
|
||||
//private boolean allocating = false;
|
||||
public void storageCreateFile(Storage storage, String name, long length)
|
||||
{
|
||||
//if (allocating)
|
||||
@ -1085,7 +1091,7 @@ public class Snark
|
||||
|
||||
//System.out.print("Creating file '" + name
|
||||
// + "' of length " + length + ": ");
|
||||
allocating = true;
|
||||
//allocating = true;
|
||||
}
|
||||
|
||||
// How much storage space has been allocated
|
||||
@ -1093,9 +1099,9 @@ public class Snark
|
||||
|
||||
public void storageAllocated(Storage storage, long length)
|
||||
{
|
||||
allocating = true;
|
||||
//allocating = true;
|
||||
//System.out.print(".");
|
||||
allocated += length;
|
||||
//allocated += length;
|
||||
//if (allocated == meta.getTotalLength())
|
||||
// System.out.println(); // We have all the disk space we need.
|
||||
}
|
||||
@ -1105,7 +1111,7 @@ public class Snark
|
||||
private boolean prechecking = true;
|
||||
public void storageChecked(Storage storage, int num, boolean checked)
|
||||
{
|
||||
allocating = false;
|
||||
//allocating = false;
|
||||
if (!allChecked && !checking)
|
||||
{
|
||||
// Use the MetaInfo from the storage since our own might not
|
||||
|
@ -2258,10 +2258,6 @@ private static class FetchAndAdd implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
private String _(String s) {
|
||||
return _manager.util().getString(s);
|
||||
}
|
||||
|
||||
private String _(String s, String o) {
|
||||
return _manager.util().getString(s, o);
|
||||
}
|
||||
|
@ -8,8 +8,6 @@ import net.i2p.util.FileUtil;
|
||||
import org.mortbay.jetty.Server;
|
||||
|
||||
public class RunStandalone {
|
||||
private Server _server;
|
||||
|
||||
static {
|
||||
System.setProperty("org.mortbay.http.Version.paranoid", "true");
|
||||
System.setProperty("org.mortbay.xml.XmlParser.NotValidating", "true");
|
||||
|
Reference in New Issue
Block a user