summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);