forked from I2P_Developers/i2p.i2p
remove unused private items (eclipse)
This commit is contained in:
@@ -43,7 +43,6 @@ class HTTPResponseOutputStream extends FilterOutputStream {
|
||||
private boolean _headerWritten;
|
||||
private final byte _buf1[];
|
||||
protected boolean _gzip;
|
||||
private long _dataWritten;
|
||||
protected long _dataExpected;
|
||||
protected String _contentType;
|
||||
|
||||
@@ -76,7 +75,6 @@ class HTTPResponseOutputStream extends FilterOutputStream {
|
||||
public void write(byte buf[], int off, int len) throws IOException {
|
||||
if (_headerWritten) {
|
||||
out.write(buf, off, len);
|
||||
_dataWritten += len;
|
||||
//out.flush();
|
||||
return;
|
||||
}
|
||||
@@ -92,7 +90,6 @@ class HTTPResponseOutputStream extends FilterOutputStream {
|
||||
if (i + 1 < len) {
|
||||
// write out the remaining
|
||||
out.write(buf, off+i+1, len-i-1);
|
||||
_dataWritten += len-i-1;
|
||||
//out.flush();
|
||||
}
|
||||
return;
|
||||
|
@@ -64,7 +64,6 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
|
||||
|
||||
// private byte[] pubkey;
|
||||
|
||||
private String handlerName;
|
||||
private String privKeyFile;
|
||||
|
||||
// true if we are chained from a server.
|
||||
@@ -99,7 +98,6 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
|
||||
_clientId = clientId;
|
||||
this.localPort = localPort;
|
||||
this.l = l;
|
||||
this.handlerName = localPort + " #" + _clientId;
|
||||
_ownDest = true; // == ! shared client
|
||||
_context = tunnel.getContext();
|
||||
_context.statManager().createRateStat("i2ptunnel.client.closeBacklog", "How many pending sockets remain when we close one due to backlog?", "I2PTunnel", new long[] { 60*1000, 10*60*1000, 60*60*1000 });
|
||||
@@ -166,7 +164,6 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
|
||||
_clientId = ++__clientId;
|
||||
this.localPort = localPort;
|
||||
this.l = l;
|
||||
this.handlerName = handlerName + _clientId;
|
||||
_ownDest = ownDest; // == ! shared client
|
||||
|
||||
|
||||
|
@@ -1014,10 +1014,8 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
|
||||
* Todo: Limit line length for buffered reads, or go back to unbuffered for all
|
||||
*/
|
||||
private static class InputReader {
|
||||
BufferedReader _br;
|
||||
InputStream _s;
|
||||
public InputReader(InputStream s) {
|
||||
_br = null;
|
||||
_s = s;
|
||||
}
|
||||
String readLine(String method) throws IOException {
|
||||
@@ -1213,8 +1211,6 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
|
||||
}
|
||||
}
|
||||
|
||||
private final static String SUPPORTED_HOSTS[] = { "i2p", "www.i2p.com", "i2p."};
|
||||
|
||||
/** @param host ignored */
|
||||
private static boolean isSupportedAddress(String host, String protocol) {
|
||||
if ((host == null) || (protocol == null)) return false;
|
||||
|
@@ -48,8 +48,6 @@ public class DCCClientManager extends EventReceiver {
|
||||
|
||||
private static final int MAX_INCOMING_PENDING = 10;
|
||||
private static final int MAX_INCOMING_ACTIVE = 10;
|
||||
private static final long ACTIVE_EXPIRE = 60*60*1000;
|
||||
|
||||
public DCCClientManager(I2PSocketManager sktMgr, Logging logging,
|
||||
EventDispatcher dispatch, I2PTunnel tunnel) {
|
||||
sockMgr = sktMgr;
|
||||
|
@@ -49,9 +49,6 @@ public class I2PTunnelDCCServer extends I2PTunnelServer {
|
||||
private final ConcurrentHashMap<Integer, LocalAddress> _resume;
|
||||
private final List<I2PSocket> _sockList;
|
||||
|
||||
// list of client tunnels?
|
||||
private static long _id;
|
||||
|
||||
/** just to keep super() happy */
|
||||
private static final InetAddress DUMMY;
|
||||
static {
|
||||
@@ -67,8 +64,6 @@ public class I2PTunnelDCCServer extends I2PTunnelServer {
|
||||
private static final int MAX_OUTGOING_PENDING = 20;
|
||||
private static final int MAX_OUTGOING_ACTIVE = 20;
|
||||
private static final long OUTBOUND_EXPIRE = 30*60*1000;
|
||||
private static final long ACTIVE_EXPIRE = 60*60*1000;
|
||||
|
||||
/**
|
||||
* There's no support for unsolicited incoming I2P connections,
|
||||
* so there's no server host or port parameters.
|
||||
@@ -233,17 +228,6 @@ public class I2PTunnelDCCServer extends I2PTunnelServer {
|
||||
return -1;
|
||||
}
|
||||
|
||||
private InetAddress getListenHost(Logging l) {
|
||||
try {
|
||||
return InetAddress.getByName(getTunnel().listenHost);
|
||||
} catch (UnknownHostException uhe) {
|
||||
l.log("Could not find listen host to bind to [" + getTunnel().host + "]");
|
||||
_log.error("Error finding host to bind", uhe);
|
||||
notifyEvent("openBaseClientResult", "error");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private void expireOutbound() {
|
||||
for (Iterator<LocalAddress> iter = _outgoing.values().iterator(); iter.hasNext(); ) {
|
||||
LocalAddress a = iter.next();
|
||||
|
@@ -62,9 +62,6 @@ public class Subscriber implements Sink {
|
||||
|
||||
|
||||
|
||||
private I2PSession sess;
|
||||
private Source listener;
|
||||
private Set<Destination> subscriptions;
|
||||
private MultiSource multi;
|
||||
private Source server;
|
||||
}
|
||||
|
@@ -53,24 +53,9 @@ import net.i2p.util.EventDispatcher;
|
||||
|
||||
protected Destination dest = null;
|
||||
|
||||
private boolean listenerReady = false;
|
||||
|
||||
private ServerSocket ss;
|
||||
|
||||
private final Object startLock = new Object();
|
||||
private boolean startRunning = false;
|
||||
|
||||
private byte[] pubkey;
|
||||
|
||||
private String handlerName;
|
||||
|
||||
private Object conLock = new Object();
|
||||
|
||||
/** How many connections will we allow to be in the process of being built at once? */
|
||||
private int _numConnectionBuilders;
|
||||
/** How long will we allow sockets to sit in the _waitingSockets map before killing them? */
|
||||
private int _maxWaitTime;
|
||||
|
||||
private I2PSession _session;
|
||||
private Source _i2pSource;
|
||||
private Sink _i2pSink;
|
||||
@@ -141,7 +126,6 @@ import net.i2p.util.EventDispatcher;
|
||||
throw new RuntimeException("failed to connect session", exc);
|
||||
}
|
||||
start();
|
||||
startRunning = true;
|
||||
startLock.notify();
|
||||
}
|
||||
open = true;
|
||||
|
@@ -51,8 +51,6 @@ public class I2PTunnelUDPServerBase extends I2PTunnelTask implements Source, Sin
|
||||
private final Object lock = new Object();
|
||||
protected Object slock = new Object();
|
||||
|
||||
private static volatile long __serverId = 0;
|
||||
|
||||
protected Logging l;
|
||||
|
||||
private static final long DEFAULT_READ_TIMEOUT = -1; // 3*60*1000;
|
||||
|
@@ -76,7 +76,6 @@ public class IndexBean {
|
||||
private String _profile;
|
||||
private boolean _startOnLoad;
|
||||
private boolean _sharedClient;
|
||||
private boolean _privKeyGenerate;
|
||||
private boolean _removeConfirmed;
|
||||
private final Set<String> _booleanOptions;
|
||||
private final Map<String, String> _otherOptions;
|
||||
|
Reference in New Issue
Block a user