diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 15:47:23 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 15:47:23 (EDT) |
commit | 101c6d846fa878729247bf572f93eb0da227819d (patch) | |
tree | 49a5be2d4cf3799f1dcc234a562685a2aa7efafb | |
parent | 6e335af1690f1513160e9b340a8b6b27fd9344d5 (diff) | |
download | marquee-101c6d846fa878729247bf572f93eb0da227819d.zip marquee-101c6d846fa878729247bf572f93eb0da227819d.tar.gz marquee-101c6d846fa878729247bf572f93eb0da227819d.tar.bz2 |
mq_tree_foreach_child(): Remove function
-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); |