Router: Unused methods and fields (findbugs)

This commit is contained in:
zzz
2021-05-05 10:58:16 -04:00
parent e8d3193331
commit f77677f1f4
3 changed files with 8 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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;
}
}

View File

@@ -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?