[LOGBack-dev] svn commit: r262 - logback/core/trunk/src/main/java/ch/qos/logback/core/status

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Jul 24 19:49:23 CEST 2006


Author: seb
Date: Mon Jul 24 19:49:22 2006
New Revision: 262

Modified:
   logback/core/trunk/src/main/java/ch/qos/logback/core/status/StatusBase.java
Log:
debugged remove method

Modified: logback/core/trunk/src/main/java/ch/qos/logback/core/status/StatusBase.java
==============================================================================
--- logback/core/trunk/src/main/java/ch/qos/logback/core/status/StatusBase.java	(original)
+++ logback/core/trunk/src/main/java/ch/qos/logback/core/status/StatusBase.java	Mon Jul 24 19:49:22 2006
@@ -64,15 +64,9 @@
       return false;
     }
 
-    int size = childrenList.size();
-    for (int i = 0; i < size; i++) {
-      Status m = (Status) childrenList.get(i);
-      if( m == statusToRemove) {
-          return false;
-      }
-    }
-    // could not find statusToRemove
-    return false;
+    //TODO also search in childrens' childrens
+    return childrenList.remove(statusToRemove);
+
   }
 
   public int getLevel() {



More information about the logback-dev mailing list