[gnome-builder] jcon: remove unnecessary assertion



commit 233cc75d224b9af3f8ee1a9a69397f6e7261dd4f
Author: Christian Hergert <chergert redhat com>
Date:   Sat Oct 29 21:32:46 2016 -0700

    jcon: remove unnecessary assertion

 contrib/jsonrpc-glib/jcon.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/contrib/jsonrpc-glib/jcon.c b/contrib/jsonrpc-glib/jcon.c
index b0d27bc..f771778 100644
--- a/contrib/jsonrpc-glib/jcon.c
+++ b/contrib/jsonrpc-glib/jcon.c
@@ -631,7 +631,6 @@ jcon_extract_va_list (JsonNode *node,
           JsonNode *target = get_stack_node (node, keys[sp], indexes[sp]);
           if (target == NULL || !JSON_NODE_HOLDS_ARRAY (target))
             return FALSE;
-          g_assert (node == json_node_get_parent (target));
           node = target;
           PUSH_STACK();
           continue;
@@ -642,7 +641,6 @@ jcon_extract_va_list (JsonNode *node,
           JsonNode *target = get_stack_node (node, keys[sp], indexes[sp]);
           if (target == NULL || !JSON_NODE_HOLDS_OBJECT (target))
             return FALSE;
-          g_assert (node == json_node_get_parent (target));
           node = target;
           PUSH_STACK();
           continue;


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