From 613777e6dce53fc3c8794ef6cf5d00688ee442e5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 7 Feb 2010 15:49:13 +0100 Subject: s3: Remove unused comparison fn from "struct sorted_tree" --- source3/lib/adt_tree.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/adt_tree.c b/source3/lib/adt_tree.c index 343173b4f4..7f4a39de6e 100644 --- a/source3/lib/adt_tree.c +++ b/source3/lib/adt_tree.c @@ -30,9 +30,6 @@ struct tree_node { struct sorted_tree { struct tree_node *root; - - /* not used currently (is it needed?) */ - int (*compare)(void* x, void *y); }; /************************************************************************** @@ -60,11 +57,10 @@ static bool trim_tree_keypath( char *path, char **base, char **new_path ) } /************************************************************************** - Initialize the tree's root. The cmp_fn is a callback function used - for comparision of two children + Initialize the tree's root. *************************************************************************/ -struct sorted_tree *pathtree_init( void *data_p, int (cmp_fn)(void*, void*) ) +struct sorted_tree *pathtree_init(void *data_p) { struct sorted_tree *tree = NULL; @@ -73,8 +69,6 @@ struct sorted_tree *pathtree_init( void *data_p, int (cmp_fn)(void*, void*) ) return NULL; } - tree->compare = cmp_fn; - tree->root = talloc_zero(tree, struct tree_node); if (tree->root == NULL) { TALLOC_FREE( tree ); -- cgit