From 0a3b4ba3b720bef17f17fa7c218670e0bbfd1032 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Oct 2017 20:11:36 -0400 Subject: MqTree: Fix some foreach recursion --- diff --git a/src/tree.c b/src/tree.c index 75ea06f..2a146f3 100644 --- a/src/tree.c +++ b/src/tree.c @@ -45,10 +45,6 @@ print_tree_recurse(MqTree *node, gsize indent) if (node->first_child) { print_tree_recurse(node->first_child, indent + 1); } - - if (node->parent && node->parent->next) { - print_tree_recurse(node->parent->next, indent + 1); - } } } @@ -219,13 +215,6 @@ foreach(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), return MQ_TREE_STOP; } } - - if (node->parent && node->parent->next) { - if (foreach(node->parent->next, cb, user_data) == - MQ_TREE_STOP) { - return MQ_TREE_STOP; - } - } } return MQ_TREE_CONTINUE; -- cgit v0.9.1