From 452c89aa8345f6478d61313ba47860c49ec82a58 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 2 Sep 2013 12:53:47 +0100 Subject: Remove unused hotlist_old_visited. --- desktop/hotlist_old.c | 49 ------------------------------------------------- desktop/hotlist_old.h | 1 - 2 files changed, 50 deletions(-) diff --git a/desktop/hotlist_old.c b/desktop/hotlist_old.c index b893a08a6..956e85bec 100644 --- a/desktop/hotlist_old.c +++ b/desktop/hotlist_old.c @@ -211,55 +211,6 @@ void hotlist_old_cleanup(const char *hotlist_path) LOG(("Hotlist cleaned up.")); } - -/** - * Informs the hotlist that some content has been visited. Internal procedure. - * - * \param content the content visited - * \param node the node to update siblings and children of - */ -static void hotlist_old_visited_internal(hlcache_handle *content, struct node *node) -{ - struct node *child; - const char *text; - const char *url; - nsurl *nsurl; - - if (content == NULL || - hlcache_handle_get_url(content) == NULL || - hotlist_old_tree == NULL) - return; - - nsurl = hlcache_handle_get_url(content); - url = nsurl_access(nsurl); - - for (; node; node = tree_node_get_next(node)) { - if (!tree_node_is_folder(node)) { - text = tree_url_node_get_url(node); - if (strcmp(text, url) == 0) { - tree_update_URL_node(hotlist_old_tree, node, - nsurl, NULL); - } - } - child = tree_node_get_child(node); - if (child != NULL) { - hotlist_old_visited_internal(content, child); - } - } -} - -/** - * Informs the hotlist that some content has been visited - * - * \param content the content visited - */ -void hotlist_old_visited(hlcache_handle *content) -{ - if (hotlist_old_tree != NULL) { - hotlist_old_visited_internal(content, tree_get_root(hotlist_old_tree)); - } -} - /** * Save the hotlist in a human-readable form under the given location. * diff --git a/desktop/hotlist_old.h b/desktop/hotlist_old.h index 776bef290..487b336f0 100644 --- a/desktop/hotlist_old.h +++ b/desktop/hotlist_old.h @@ -42,7 +42,6 @@ bool hotlist_old_initialise(struct tree *tree, const char *hotlist_path, const c unsigned int hotlist_old_get_tree_flags(void); void hotlist_old_cleanup(const char *hotlist_path); -void hotlist_old_visited(struct hlcache_handle *c); bool hotlist_old_export(const char *path); void hotlist_old_edit_selected(void); -- cgit v1.2.3