forked from I2P_Developers/i2p.i2p
Router: Unused methods and fields (findbugs)
This commit is contained in:
@@ -914,10 +914,12 @@ public class Blocklist {
|
||||
return match(ip, blocklist[cur]);
|
||||
}
|
||||
|
||||
/*
|
||||
// Is the IP included in the entry _blocklist[cur] ?
|
||||
private boolean match(int ip, int cur) {
|
||||
return match(ip, _blocklist[cur]);
|
||||
}
|
||||
*/
|
||||
|
||||
// Is the IP included in the compressed entry?
|
||||
private static boolean match(int ip, long entry) {
|
||||
|
||||
@@ -616,16 +616,16 @@ public class NTCPConnection implements Closeable {
|
||||
|
||||
static class PrepBuffer {
|
||||
final byte unencrypted[];
|
||||
int unencryptedLength;
|
||||
byte encrypted[];
|
||||
//int unencryptedLength;
|
||||
//byte encrypted[];
|
||||
|
||||
public PrepBuffer() {
|
||||
unencrypted = new byte[BUFFER_SIZE];
|
||||
}
|
||||
|
||||
public void init() {
|
||||
unencryptedLength = 0;
|
||||
encrypted = null;
|
||||
//unencryptedLength = 0;
|
||||
//encrypted = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -645,9 +645,11 @@ class IntroductionManager {
|
||||
* Refuse anybody in the same /16
|
||||
* @since 0.9.3
|
||||
*/
|
||||
/*
|
||||
private boolean isValid(byte[] ip, int port) {
|
||||
return isValid(ip, port, false);
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Are IP and port valid?
|
||||
|
||||
Reference in New Issue
Block a user