summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 20:11:36 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 20:11:36 (EDT)
commit0a3b4ba3b720bef17f17fa7c218670e0bbfd1032 (patch)
treece46254dd2d81029ede789c586821800419eca67
parentbe826535a7e0437582a57aa7f4dfd8decb0c9c0e (diff)
downloadmarquee-0a3b4ba3b720bef17f17fa7c218670e0bbfd1032.zip
marquee-0a3b4ba3b720bef17f17fa7c218670e0bbfd1032.tar.gz
marquee-0a3b4ba3b720bef17f17fa7c218670e0bbfd1032.tar.bz2
MqTree: Fix some foreach recursion
-rw-r--r--src/tree.c11
1 files changed, 0 insertions, 11 deletions
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;