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 | |
parent | 6a4a297b2f21fdac7f7fcc6b37754786d57a7b9d (diff) | |
download | netsurf-452c89aa8345f6478d61313ba47860c49ec82a58.tar.gz netsurf-452c89aa8345f6478d61313ba47860c49ec82a58.tar.bz2 |
Remove unused hotlist_old_visited.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/hotlist_old.c | 49 | ||||
-rw-r--r-- | desktop/hotlist_old.h | 1 |
2 files changed, 0 insertions, 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); |