[freenet-cvs] r18934 - in trunk/freenet/src/freenet: clients/http crypt support/transport/ip

nextgens at freenetproject.org nextgens at freenetproject.org
Thu Apr 3 07:11:57 UTC 2008


Author: nextgens
Date: 2008-04-03 07:11:57 +0000 (Thu, 03 Apr 2008)
New Revision: 18934

Modified:
   trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
   trunk/freenet/src/freenet/crypt/DSAPublicKey.java
   trunk/freenet/src/freenet/support/transport/ip/IPAddressDetector.java
Log:
remove dead code & redundant checks

Modified: trunk/freenet/src/freenet/clients/http/FProxyToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/FProxyToadlet.java	2008-04-03 06:53:16 UTC (rev 18933)
+++ trunk/freenet/src/freenet/clients/http/FProxyToadlet.java	2008-04-03 07:11:57 UTC (rev 18934)
@@ -245,8 +245,7 @@
 				optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", key.toString() });
 				optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "return-type", "disk" });
 				optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "persistence", "forever" });
-				if (mimeType != null) {
-					optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "type", mimeType });
+				optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "type", mimeType });
 				}
 				optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "download", l10n("downloadInBackgroundToDisk") });
 			}

Modified: trunk/freenet/src/freenet/crypt/DSAPublicKey.java
===================================================================
--- trunk/freenet/src/freenet/crypt/DSAPublicKey.java	2008-04-03 06:53:16 UTC (rev 18933)
+++ trunk/freenet/src/freenet/crypt/DSAPublicKey.java	2008-04-03 07:11:57 UTC (rev 18934)
@@ -29,8 +29,6 @@
 		this.group = g;
 		if(y.compareTo(g.getP()) > 0)
 			throw new IllegalArgumentException("y must be < p but y=" + y + " p=" + g.getP());
-		if(g == null)
-			throw new NullPointerException();
 	}
 
 	/**

Modified: trunk/freenet/src/freenet/support/transport/ip/IPAddressDetector.java
===================================================================
--- trunk/freenet/src/freenet/support/transport/ip/IPAddressDetector.java	2008-04-03 06:53:16 UTC (rev 18933)
+++ trunk/freenet/src/freenet/support/transport/ip/IPAddressDetector.java	2008-04-03 07:11:57 UTC (rev 18934)
@@ -40,7 +40,6 @@
 		return System.currentTimeMillis() + interval; // We are pretty cheap
 	}
 
-	InetAddress lastInetAddress = null;
 	InetAddress[] lastAddressList = null;
 	long lastDetectedTime = -1;
 




More information about the cvs mailing list