Author: batosai
Date: 2008-08-18 19:13:27 +0000 (Mon, 18 Aug 2008)
New Revision: 22019

Modified:
   trunk/apps/WoT/src/plugins/WoT/WoT.java
Log:
fixed bug #2515: That code was removing identities when it shouldn't. We get 
rid of it, as database maintenance is for 0.7.0

Modified: trunk/apps/WoT/src/plugins/WoT/WoT.java
===================================================================
--- trunk/apps/WoT/src/plugins/WoT/WoT.java     2008-08-18 18:47:35 UTC (rev 
22018)
+++ trunk/apps/WoT/src/plugins/WoT/WoT.java     2008-08-18 19:13:27 UTC (rev 
22019)
@@ -130,15 +130,7 @@
                if(newRank == -1) { // None of the trusters had capacity in 
that trust tree, this identity isn't either
                        try {
                                score = identity.getScore(treeOwner, db); 
-                               db.delete(score); // We get this identity out 
of this trust tree
-                               
-                               // Check if this identity still is in one trust 
tree 
-                               if(db.queryByExample(new 
Score(null,identity,0,0,0)).size() == 0) {
-                                       db.delete(identity); // Drop it from 
database
-                                       // TODO Stop its persistent requests
-                               }
-                               
-                               
+                               db.delete(score); // We get this identity out 
of this trust tree                                
                        }catch (NotInTrustTreeException e) {
                                // Nothing to do
                        }


Reply via email to