Author: toad
Date: 2008-10-01 17:11:42 +0000 (Wed, 01 Oct 2008)
New Revision: 22899
Modified:
branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
Logging, dead code
Modified: branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
2008-10-01 17:11:26 UTC (rev 22898)
+++ branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
2008-10-01 17:11:42 UTC (rev 22899)
@@ -128,11 +128,8 @@
container.activate(rga, 1);
RandomGrabArrayItem item =
rga.removeRandom(excluding, container, context);
if(rga.isEmpty()) {
- Object client = rga.getObject();
- if(persistent)
- container.activate(client, 1);
if(logMINOR)
- Logger.minor(this, "Removing
only grab array (0) : "+rga+" for "+rga.getObject()+" (is empty)");
+ Logger.minor(this, "Removing
only grab array (0) : "+rga);
grabArrays = new
RemoveRandomWithObject[0];
grabClients = new Object[0];
if(persistent)
@@ -215,7 +212,6 @@
if(rga.isEmpty()) {
if(logMINOR)
Logger.minor(this, "Removing grab array
"+x+" : "+rga+" (is empty)");
- Object client = rga.getObject();
removeElement(x);
if(persistent)
container.store(this);