Author: toad
Date: 2008-04-03 12:46:16 +0000 (Thu, 03 Apr 2008)
New Revision: 18950
Modified:
trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
Log:
Delete unused method.
Modified: trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java 2008-04-03
12:40:06 UTC (rev 18949)
+++ trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java 2008-04-03
12:46:16 UTC (rev 18950)
@@ -293,23 +293,6 @@
"BlockTransmitter:sendAsync() for "+this);
}
- public void waitForComplete() {
- long deadline = System.currentTimeMillis() + 60*60*1000;
- synchronized(_senderThread) {
- while(!_sendComplete) {
- try {
- long now = System.currentTimeMillis();
- if(now > deadline) throw new
IllegalStateException("Waited more than 1 hour for transfer completion!");
- synchronized(BlockTransmitter.this) {
- wait(deadline - now);
- }
- } catch (InterruptedException e) {
- // Ignore
- }
- }
- }
- }
-
public boolean getAsyncExitStatus() {
long deadline = System.currentTimeMillis() + 60*60*1000;
synchronized (this) {