diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-02 12:53:47 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-09-02 12:53:47 +0100 |
commit | 452c89aa8345f6478d61313ba47860c49ec82a58 (patch) | |
tree | d6c87e6221db474c5d00a67c269e65e9a3a79542 /desktop/hotlist_old.c | |
parent | 6a4a297b2f21fdac7f7fcc6b37754786d57a7b9d (diff) | |
download | netsurf-452c89aa8345f6478d61313ba47860c49ec82a58.tar.gz netsurf-452c89aa8345f6478d61313ba47860c49ec82a58.tar.bz2 |
Remove unused hotlist_old_visited.
Diffstat (limited to 'desktop/hotlist_old.c')
-rw-r--r-- | desktop/hotlist_old.c | 49 |
1 files changed, 0 insertions, 49 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. * |