BIND 10 trac846,	updated. 3427f489904a83ed1adb8e740aaaf1f6ba80267e [trac846] Simplify	the function
    BIND 10 source code commits 
    bind10-changes at lists.isc.org
       
    Tue Apr 26 08:52:14 UTC 2011
    
    
  
The branch, trac846 has been updated
       via  3427f489904a83ed1adb8e740aaaf1f6ba80267e (commit)
      from  74472396fc8f91daedcd6a286b34b5cae8a5ab57 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3427f489904a83ed1adb8e740aaaf1f6ba80267e
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Tue Apr 26 10:48:19 2011 +0200
    [trac846] Simplify the function
-----------------------------------------------------------------------
Summary of changes:
 src/lib/config/tests/fake_session.cc |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/config/tests/fake_session.cc b/src/lib/config/tests/fake_session.cc
index c4fa3c4..5f79d48 100644
--- a/src/lib/config/tests/fake_session.cc
+++ b/src/lib/config/tests/fake_session.cc
@@ -53,17 +53,13 @@ listContains(ConstElementPtr list, ConstElementPtr el) {
 void
 listRemove(ElementPtr list, ConstElementPtr el) {
     int i = 0;
-    int position = -1;
     BOOST_FOREACH(ConstElementPtr s_el, list->listValue()) {
         if (*el == *s_el) {
-            position = i;
-            break;
+            list->remove(i);
+            return;
         }
         i++;
     }
-    if (position >= 0) {
-        list->remove(position);
-    }
 }
 // endwant
 
    
    
More information about the bind10-changes
mailing list