Author: nextgens
Date: 2007-12-17 13:02:04 +0000 (Mon, 17 Dec 2007)
New Revision: 16652
Modified:
trunk/freenet/src/freenet/node/fcp/ClientGet.java
Log:
Remove more dead code
Modified: trunk/freenet/src/freenet/node/fcp/ClientGet.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/ClientGet.java 2007-12-17 12:44:51 UTC
(rev 16651)
+++ trunk/freenet/src/freenet/node/fcp/ClientGet.java 2007-12-17 13:02:04 UTC
(rev 16652)
@@ -398,19 +398,11 @@
*/
} else if(returnType ==
ClientGetMessage.RETURN_TYPE_DISK) {
// Write to temp file, then rename over filename
- FileOutputStream fos = null;
- boolean closed = false;
if(!FileUtil.renameTo(tempFile, targetFile)) {
postFetchProtocolErrorMessage = new
ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_RENAME_FILE, false, null,
identifier, global);
// Don't delete temp file, user might
want it.
}
returnBucket = new FileBucket(targetFile,
false, true, false, false, false);
- try {
- if((fos != null) && !closed)
- fos.close();
- } catch (IOException e) {
- Logger.error(this, "Caught "+e+"
closing file "+tempFile, e);
- }
}
progressPending = null;
this.foundDataLength = returnBucket.size();