diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 20 | ||||
-rw-r--r-- | src/tree.h | 4 |
2 files changed, 0 insertions, 24 deletions
@@ -183,26 +183,6 @@ mq_tree_foreach(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), } static gboolean -foreach_child(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), - gpointer user_data) -{ - for (node = node->first_child; node; node = node->next) { - if (cb(node, user_data) == MQ_TREE_STOP) { - return MQ_TREE_STOP; - } - } - - return MQ_TREE_CONTINUE; -} - -void -mq_tree_foreach_child(MqTree *node, - gboolean (*cb)(MqTree *node, gpointer user_data), gpointer user_data) -{ - foreach_child(node->first_child, cb, user_data); -} - -static gboolean foreach_from(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), gpointer user_data) { @@ -80,10 +80,6 @@ mq_tree_foreach(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), gpointer user_data); void -mq_tree_foreach_child(MqTree *node, - gboolean (*cb)(MqTree *node, gpointer user_data), gpointer user_data); - -void mq_tree_foreach_from(MqTree *node, gboolean (*cb)(MqTree *node, gpointer user_data), gpointer user_data); |