remove unused local variables (eclipse)

This commit is contained in:
zzz
2012-03-25 22:16:03 +00:00
parent f13956d380
commit 1db58dee89
55 changed files with 23 additions and 127 deletions

View File

@@ -100,7 +100,7 @@ class MessageState {
}
public void waitFor(int status, long expiration) {
long checkTime = -1;
//long checkTime = -1;
boolean found = false;
while (!found) {
if (_cancelled) return;
@@ -112,13 +112,13 @@ class MessageState {
}
found = false;
synchronized (_receivedStatus) {
long beforeCheck = _context.clock().now();
//long beforeCheck = _context.clock().now();
if (locked_isSuccess(status) || locked_isFailure(status)) {
if (_log.shouldLog(Log.DEBUG))
_log.debug(_prefix + "Received a confirm (one way or the other)");
found = true;
}
checkTime = _context.clock().now() - beforeCheck;
//checkTime = _context.clock().now() - beforeCheck;
if (!found) {
if (timeToWait > 5000) {
timeToWait = 5000;

View File

@@ -27,7 +27,6 @@ class MessageStatusMessageHandler extends HandlerImpl {
}
public void handleMessage(I2CPMessage message, I2PSessionImpl session) {
boolean skipStatus = true;
if (_log.shouldLog(Log.DEBUG))
_log.debug("Handle message " + message);
MessageStatusMessage msg = (MessageStatusMessage) message;

View File

@@ -61,8 +61,6 @@ public final class I2PDatagramDissector {
*/
public void loadI2PDatagram(byte[] dgram) throws DataFormatException {
ByteArrayInputStream dgStream = new ByteArrayInputStream(dgram);
byte[] rxTrimmedPayload;
// set invalid(very important!)
this.valid = false;

View File

@@ -89,8 +89,6 @@ public final class CryptixRijndael_Algorithm // implicit no-argument constructor
//...........................................................................
static {
long time = Clock.getInstance().now();
if (_RDEBUG && _debuglevel > 6) {
System.out.println("Algorithm Name: Rijndael ver 0.1");
System.out.println("Electronic Codebook (ECB) Mode");

View File

@@ -318,7 +318,6 @@ public class ElGamalAESEngine {
//_log.debug("Hash of entire aes block after decryption: \n" + DataHelper.toString(h.getData(), 32));
try {
SessionKey newKey = null;
Hash readHash = null;
List tags = null;
//ByteArrayInputStream bais = new ByteArrayInputStream(decrypted);

View File

@@ -520,10 +520,9 @@ public class Base64 {
// + ((len % 3) > 0 ? 4 : 0) // Account for padding
// + (breakLines ? (len43 / MAX_LINE_LENGTH) : 0)]; // New lines
int d = 0;
int e = 0;
int len2 = len - 2;
int lineLength = 0;
for (; d < len2; d += 3, e += 4) {
for (; d < len2; d += 3) {
//encode3to4(source, d + off, 3, outBuff, e);
encode3to4(source, d + off, 3, out, alpha);
@@ -531,7 +530,6 @@ public class Base64 {
if (breakLines && lineLength == MAX_LINE_LENGTH) {
//outBuff[e + 4] = NEW_LINE;
out.append('\n');
e++;
lineLength = 0;
} // end if: end of line
} // en dfor: each piece of array
@@ -539,7 +537,6 @@ public class Base64 {
if (d < len) {
//encode3to4(source, d + off, len - d, outBuff, e);
encode3to4(source, d + off, len - d, out, alpha);
e += 4;
} // end if: some padding needed
//out.append(new String(outBuff, 0, e));

View File

@@ -212,8 +212,7 @@ public class FileUtil {
}
try {
InputStream in = zip.getInputStream(entry);
int read = 0;
while ( (read = in.read(buf)) != -1) {
while ( (in.read(buf)) != -1) {
// throw the data away
}
//System.err.println("INFO: File [" + entry.getName() + "] extracted");

View File

@@ -333,7 +333,6 @@ public class LogManager {
_fileSize = getFileSize(config.getProperty(PROP_FILESIZE, DEFAULT_FILESIZE));
_rotationLimit = -1;
try {
String str = config.getProperty(PROP_ROTATIONLIMIT);
_rotationLimit = Integer.parseInt(config.getProperty(PROP_ROTATIONLIMIT, DEFAULT_ROTATIONLIMIT));
} catch (NumberFormatException nfe) {
System.err.println("Invalid rotation limit");
@@ -521,14 +520,12 @@ public class LogManager {
private void updateLimit(Log log) {
List<LogLimit> limits = getLimits(log);
LogLimit max = null;
LogLimit notMax = null;
if (limits != null) {
for (LogLimit cur : limits) {
if (max == null)
max = cur;
else {
if (cur.getRootName().length() > max.getRootName().length()) {
notMax = max;
max = cur;
}
}

View File

@@ -103,10 +103,8 @@ public class ShellCommand {
@Override
public void run() {
String streamData;
try {
while ((streamData = bufferedReader.readLine()) != null) {
while ((bufferedReader.readLine()) != null) {
// Just like a Hoover.
}
} catch (IOException e) {

View File

@@ -164,7 +164,6 @@ public class BSkipSpan extends SkipSpan {
if (nKeys <= 0 && prev != null)
bf.log.error("Flushing with no entries?" + this, new Exception());
int ksz, vsz;
int curPage = this.page;
int[] curNextPage = new int[1];
curNextPage[0] = this.overflowPage;

View File

@@ -91,7 +91,6 @@ public class IBSkipIterator extends SkipIterator {
*/
@Override
public Comparable nextKey() {
Comparable c;
if(index < ss.nKeys) {
if (ss.keys == null) {
try {

View File

@@ -84,7 +84,6 @@ public class SkipIterator implements ListIterator {
* @throws NoSuchElementException
*/
public Comparable nextKey() {
Comparable c;
if(index < ss.nKeys) { return ss.keys[index]; }
throw new NoSuchElementException();
}