I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit f77677f1 authored by zzz's avatar zzz
Browse files

Router: Unused methods and fields (findbugs)

parent e8d31933
No related branches found
No related tags found
No related merge requests found
...@@ -914,10 +914,12 @@ public class Blocklist { ...@@ -914,10 +914,12 @@ public class Blocklist {
return match(ip, blocklist[cur]); return match(ip, blocklist[cur]);
} }
/*
// Is the IP included in the entry _blocklist[cur] ? // Is the IP included in the entry _blocklist[cur] ?
private boolean match(int ip, int cur) { private boolean match(int ip, int cur) {
return match(ip, _blocklist[cur]); return match(ip, _blocklist[cur]);
} }
*/
// Is the IP included in the compressed entry? // Is the IP included in the compressed entry?
private static boolean match(int ip, long entry) { private static boolean match(int ip, long entry) {
......
...@@ -616,16 +616,16 @@ public class NTCPConnection implements Closeable { ...@@ -616,16 +616,16 @@ public class NTCPConnection implements Closeable {
static class PrepBuffer { static class PrepBuffer {
final byte unencrypted[]; final byte unencrypted[];
int unencryptedLength; //int unencryptedLength;
byte encrypted[]; //byte encrypted[];
public PrepBuffer() { public PrepBuffer() {
unencrypted = new byte[BUFFER_SIZE]; unencrypted = new byte[BUFFER_SIZE];
} }
public void init() { public void init() {
unencryptedLength = 0; //unencryptedLength = 0;
encrypted = null; //encrypted = null;
} }
} }
......
...@@ -645,9 +645,11 @@ class IntroductionManager { ...@@ -645,9 +645,11 @@ class IntroductionManager {
* Refuse anybody in the same /16 * Refuse anybody in the same /16
* @since 0.9.3 * @since 0.9.3
*/ */
/*
private boolean isValid(byte[] ip, int port) { private boolean isValid(byte[] ip, int port) {
return isValid(ip, port, false); return isValid(ip, port, false);
} }
*/
/** /**
* Are IP and port valid? * Are IP and port valid?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment