diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 20:11:36 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 20:11:36 (EDT) |
commit | 0a3b4ba3b720bef17f17fa7c218670e0bbfd1032 (patch) | |
tree | ce46254dd2d81029ede789c586821800419eca67 | |
parent | be826535a7e0437582a57aa7f4dfd8decb0c9c0e (diff) | |
download | marquee-0a3b4ba3b720bef17f17fa7c218670e0bbfd1032.zip marquee-0a3b4ba3b720bef17f17fa7c218670e0bbfd1032.tar.gz marquee-0a3b4ba3b720bef17f17fa7c218670e0bbfd1032.tar.bz2 |
MqTree: Fix some foreach recursion
-rw-r--r-- | src/tree.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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; |