Author: juiceman
Date: 2007-05-19 20:12:11 +0000 (Sat, 19 May 2007)
New Revision: 13273
Modified:
trunk/freenet/src/freenet/client/async/SplitFileInserter.java
Log:
Remove ancient backward compatibility hack.
Modified: trunk/freenet/src/freenet/client/async/SplitFileInserter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileInserter.java
2007-05-19 20:11:48 UTC (rev 13272)
+++ trunk/freenet/src/freenet/client/async/SplitFileInserter.java
2007-05-19 20:12:11 UTC (rev 13273)
@@ -157,11 +157,7 @@
String scodec = fs.get("SplitfileCodec");
if(scodec == null) throw new ResumeException("No splitfile
codec");
try {
- // FIXME remove soon, backwards compat hack!
- short t = Short.parseShort(scodec);
- if(t == -1)
- t = 1;
- splitfileAlgorithm = t;
+ splitfileAlgorithm = Short.parseShort(scodec);
} catch (NumberFormatException e) {
throw new ResumeException("Corrupt SplitfileCodec:
"+e+" : "+scodec);
}