forked from I2P_Developers/i2p.i2p
remove unused private items (eclipse)
This commit is contained in:
@ -225,8 +225,6 @@ class I2PSessionImpl2 extends I2PSessionImpl {
|
||||
return compressed;
|
||||
}
|
||||
|
||||
private static final int NUM_TAGS = 50;
|
||||
|
||||
/**
|
||||
* @param keyUsed unused - no end-to-end crypto
|
||||
* @param tagsSent unused - no end-to-end crypto
|
||||
|
@ -102,10 +102,7 @@ class RequestLeaseSetMessageHandler extends HandlerImpl {
|
||||
private final PrivateKey _privKey;
|
||||
private final SigningPublicKey _signingPubKey;
|
||||
private final SigningPrivateKey _signingPrivKey;
|
||||
private final Destination _dest;
|
||||
|
||||
public LeaseInfo(Destination dest) {
|
||||
_dest = dest;
|
||||
Object encKeys[] = KeyGenerator.getInstance().generatePKIKeypair();
|
||||
Object signKeys[] = KeyGenerator.getInstance().generateSigningKeypair();
|
||||
_pubKey = (PublicKey) encKeys[0];
|
||||
|
@ -999,6 +999,7 @@ public class BlockfileNamingService extends DummyNamingService {
|
||||
_invalid.clear();
|
||||
}
|
||||
|
||||
/****
|
||||
private void dumpDB() {
|
||||
synchronized(_bf) {
|
||||
if (_isClosed)
|
||||
@ -1028,6 +1029,7 @@ public class BlockfileNamingService extends DummyNamingService {
|
||||
deleteInvalid();
|
||||
}
|
||||
}
|
||||
****/
|
||||
|
||||
private void close() {
|
||||
synchronized(_bf) {
|
||||
|
@ -828,6 +828,7 @@ public final class CryptixRijndael_Algorithm // implicit no-argument constructor
|
||||
*
|
||||
* @return true if the arrays have identical contents
|
||||
*/
|
||||
/****
|
||||
private static final boolean areEqual(byte[] a, byte[] b) {
|
||||
int aLength = a.length;
|
||||
if (aLength != b.length) return false;
|
||||
@ -835,15 +836,18 @@ public final class CryptixRijndael_Algorithm // implicit no-argument constructor
|
||||
if (a[i] != b[i]) return false;
|
||||
return true;
|
||||
}
|
||||
****/
|
||||
|
||||
/**
|
||||
* Returns a string of 2 hexadecimal digits (most significant
|
||||
* digit first) corresponding to the lowest 8 bits of <i>n</i>.
|
||||
*/
|
||||
/****
|
||||
private static final String byteToString(int n) {
|
||||
char[] buf = { _HEX_DIGITS[(n >>> 4) & 0x0F], _HEX_DIGITS[n & 0x0F]};
|
||||
return new String(buf);
|
||||
}
|
||||
****/
|
||||
|
||||
/**
|
||||
* Returns a string of 8 hexadecimal digits (most significant
|
||||
|
@ -453,7 +453,7 @@ public class DSAEngine {
|
||||
return rv;
|
||||
}
|
||||
|
||||
private static final int RUNS = 1000;
|
||||
//private static final int RUNS = 1000;
|
||||
|
||||
/**
|
||||
* Run consistency and speed tests with both TheCrypto and java.security libraries.
|
||||
|
@ -737,7 +737,7 @@ public final class SHA1 extends MessageDigest implements Cloneable {
|
||||
hC += /* c= */ (c << 30) | (c >>> 2);
|
||||
}
|
||||
|
||||
private static final int RUNS = 100000;
|
||||
//private static final int RUNS = 100000;
|
||||
|
||||
/**
|
||||
* Test the GNU and the JVM's implementations for speed
|
||||
|
@ -132,7 +132,7 @@ public final class SHA256Generator {
|
||||
}
|
||||
}
|
||||
|
||||
private static final int RUNS = 100000;
|
||||
//private static final int RUNS = 100000;
|
||||
|
||||
/**
|
||||
* Test the GNU and the JVM's implementations for speed
|
||||
|
@ -1035,13 +1035,6 @@ public class TransientSessionKeyManager extends SessionKeyManager {
|
||||
return _key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Caller must synch.
|
||||
*/
|
||||
public boolean contains(SessionTag tag) {
|
||||
return _sessionTags.contains(tag);
|
||||
}
|
||||
|
||||
/**
|
||||
* Caller must synch.
|
||||
*/
|
||||
|
@ -56,8 +56,6 @@ public class Base32 {
|
||||
};
|
||||
|
||||
private final static byte BAD_ENCODING = -9; // Indicates error in encoding
|
||||
private final static byte EQUALS_SIGN_ENC = -1; // Indicates equals sign in encoding
|
||||
|
||||
/** Defeats instantiation. */
|
||||
private Base32() { // nop
|
||||
}
|
||||
|
@ -93,9 +93,6 @@ public class Base64 {
|
||||
/** The equals sign (=) as a byte. */
|
||||
private final static byte EQUALS_SIGN = (byte) '=';
|
||||
|
||||
/** The new line character (\n) as a byte. */
|
||||
private final static byte NEW_LINE = (byte) '\n';
|
||||
|
||||
/** The 64 valid Base64 values. */
|
||||
private final static byte[] ALPHABET = { (byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F',
|
||||
(byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L',
|
||||
@ -159,7 +156,6 @@ public class Base64 {
|
||||
-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9 // Decimal 244 - 255 */
|
||||
};
|
||||
|
||||
private final static byte BAD_ENCODING = -9; // Indicates error in encoding
|
||||
private final static byte WHITE_SPACE_ENC = -5; // Indicates white space in encoding
|
||||
private final static byte EQUALS_SIGN_ENC = -1; // Indicates equals sign in encoding
|
||||
|
||||
@ -557,21 +553,7 @@ public class Base64 {
|
||||
} // end encodeString
|
||||
******/
|
||||
|
||||
/**
|
||||
* Encodes a string in Base64 notation with line breaks
|
||||
* after every 75 Base64 characters.
|
||||
*
|
||||
* @param s the string to encode
|
||||
* @param breakLines Break lines at 80 characters or less.
|
||||
* @return the encoded string
|
||||
* @since 1.3
|
||||
*/
|
||||
private static String encodeString(String s, boolean breakLines) {
|
||||
byte src[] = new byte[s.length()];
|
||||
for (int i = 0; i < src.length; i++)
|
||||
src[i] = (byte)(s.charAt(i) & 0xFF);
|
||||
return encodeBytes(src, breakLines);
|
||||
} // end encodeString
|
||||
|
||||
|
||||
/* ******** D E C O D I N G M E T H O D S ******** */
|
||||
|
||||
|
@ -159,9 +159,6 @@ public class RequestLeaseSetMessage extends I2CPMessageImpl {
|
||||
private Hash _router;
|
||||
private TunnelId _tunnelId;
|
||||
|
||||
public TunnelEndpoint() {
|
||||
}
|
||||
|
||||
public TunnelEndpoint(Hash router, TunnelId id) {
|
||||
_router = router;
|
||||
_tunnelId = id;
|
||||
@ -171,16 +168,8 @@ public class RequestLeaseSetMessage extends I2CPMessageImpl {
|
||||
return _router;
|
||||
}
|
||||
|
||||
public void setRouter(Hash router) {
|
||||
_router = router;
|
||||
}
|
||||
|
||||
public TunnelId getTunnelId() {
|
||||
return _tunnelId;
|
||||
}
|
||||
|
||||
public void setTunnelId(TunnelId tunnelId) {
|
||||
_tunnelId = tunnelId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ import net.i2p.I2PAppContext;
|
||||
* @deprecated unused
|
||||
*/
|
||||
public class EepPost {
|
||||
private I2PAppContext _context;
|
||||
private Log _log;
|
||||
private static final String CRLF = "\r\n";
|
||||
|
||||
@ -27,7 +26,6 @@ public class EepPost {
|
||||
this(I2PAppContext.getGlobalContext());
|
||||
}
|
||||
public EepPost(I2PAppContext ctx) {
|
||||
_context = ctx;
|
||||
_log = ctx.logManager().getLog(EepPost.class);
|
||||
}
|
||||
|
||||
|
@ -202,13 +202,9 @@ public class Log {
|
||||
}
|
||||
|
||||
private static final class LogScope {
|
||||
private final String _scopeName;
|
||||
private final Class _scopeClass;
|
||||
private final String _scopeCache;
|
||||
|
||||
public LogScope(String name, Class cls) {
|
||||
_scopeName = name;
|
||||
_scopeClass = cls;
|
||||
_scopeCache = getScope(name, cls);
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,6 @@ class LogWriter implements Runnable {
|
||||
// volatile as it changes on log file rotation
|
||||
private volatile Writer _currentOut;
|
||||
private int _rotationNum = -1;
|
||||
private String _logFilenamePattern;
|
||||
private File _currentFile;
|
||||
private final LogManager _manager;
|
||||
|
||||
|
@ -20,12 +20,10 @@ import net.i2p.data.DataHelper;
|
||||
*/
|
||||
public class ResettableGZIPInputStream extends InflaterInputStream {
|
||||
private static final int FOOTER_SIZE = 8; // CRC32 + ISIZE
|
||||
private static final boolean DEBUG = false;
|
||||
/** See below for why this is necessary */
|
||||
private final ExtraByteInputStream _extraByteInputStream;
|
||||
/** keep a typesafe copy of this */
|
||||
private final LookaheadInputStream _lookaheadStream;
|
||||
private final InputStream _sequenceStream = null;
|
||||
private final CRC32 _crc32;
|
||||
private final byte _buf1[] = new byte[1];
|
||||
private boolean _complete;
|
||||
@ -179,8 +177,6 @@ public class ResettableGZIPInputStream extends InflaterInputStream {
|
||||
return "Read: " + getTotalRead() + " expanded: " + getTotalExpanded() + " remaining: " + getRemaining() + " finished: " + getFinished();
|
||||
}
|
||||
|
||||
private long getCurrentCRCVal() { return _crc32.getValue(); }
|
||||
|
||||
private void verifyFooter() throws IOException {
|
||||
byte footer[] = _lookaheadStream.getFooter();
|
||||
|
||||
|
Reference in New Issue
Block a user