summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 15:47:23 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 15:47:23 (EDT)
commit101c6d846fa878729247bf572f93eb0da227819d (patch)
tree49a5be2d4cf3799f1dcc234a562685a2aa7efafb /src
parent6e335af1690f1513160e9b340a8b6b27fd9344d5 (diff)
downloadmarquee-101c6d846fa878729247bf572f93eb0da227819d.zip
marquee-101c6d846fa878729247bf572f93eb0da227819d.tar.gz
marquee-101c6d846fa878729247bf572f93eb0da227819d.tar.bz2
mq_tree_foreach_child(): Remove function
Diffstat (limited to 'src')
-rw-r--r--src/tree.c20
-rw-r--r--src/tree.h4
2 files changed, 0 insertions, 24 deletions
diff --git a/src/tree.c b/src/tree.c
index ca0dda7..0d188b5 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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)
{
diff --git a/src/tree.h b/src/tree.h
index 4181d7c..ae61e47 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -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);