[geary/mjog/mail-merge-plugin: 62/71] Sidebar.Branch: Remove some harmless asserts




commit 0679ab2f5336a25d8306257aeab80ef342014175
Author: Michael Gratton <mike vee net>
Date:   Fri Jul 17 17:58:06 2020 +1000

    Sidebar.Branch: Remove some harmless asserts

 src/client/sidebar/sidebar-branch.vala | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/src/client/sidebar/sidebar-branch.vala b/src/client/sidebar/sidebar-branch.vala
index d641a3000..934194fab 100644
--- a/src/client/sidebar/sidebar-branch.vala
+++ b/src/client/sidebar/sidebar-branch.vala
@@ -68,12 +68,9 @@ public class Sidebar.Branch : Geary.BaseObject {
                 children = new Gee.TreeSet<Node>(comparator_wrapper);
 
             bool added = children.add(child);
-            assert(added);
         }
 
         public void remove_child(Node child) {
-            assert(children != null);
-
             Gee.SortedSet<Node> new_children = new Gee.TreeSet<Node>(comparator_wrapper);
 
             // For similar reasons as in reorder_child(), can't rely on TreeSet to locate this


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]