summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2008-06-14 23:17:50 +0000
committerJames Bursa <james@netsurf-browser.org>2008-06-14 23:17:50 +0000
commitf87138e5dea528b55610080d8bb6f0987b433bfd (patch)
treee74a457ca163364d685cecd675f7aae078bdb25e /content
parent337a2004cca31d55e16d8316e32d55ae4316472f (diff)
downloadnetsurf-f87138e5dea528b55610080d8bb6f0987b433bfd.tar.gz
netsurf-f87138e5dea528b55610080d8bb6f0987b433bfd.tar.bz2
Remove two unused functions.
svn path=/trunk/netsurf/; revision=4333
Diffstat (limited to 'content')
-rw-r--r--content/urldb.c53
-rw-r--r--content/urldb.h4
2 files changed, 0 insertions, 57 deletions
diff --git a/content/urldb.c b/content/urldb.c
index 6da257aa4..e4a81fc26 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -3732,59 +3732,6 @@ void urldb_save_cookie_paths(FILE *fp, struct path_data *parent)
/**
- * Sets the content data associated with a particular URL
- *
- * \param url the URL to associate content with
- * \param content the content to associate
- * \return true on success, false otherwise
- */
-bool urldb_set_cache_data(const char *url, const struct content *content) {
- struct path_data *p;
- const char *filename;
-
- assert(url && content);
-
- p = urldb_find_url(url);
- if (!p)
- return false;
-
- /* new filename needed */
- if (p->cache.filename[0] == 0) {
- filename = filename_request();
- if (!filename)
- return false;
- sprintf(p->cache.filename, filename);
- }
-
- /* todo: save content, set cache data etc */
- return true;
-}
-
-
-/**
- * Gets a file:// URL for the cached data associated with a URL
- *
- * \param url the URL to get the associated content for
- * \return a local URL allocated on heap, or NULL
- */
-char *urldb_get_cache_data(const char *url) {
- struct path_data *p;
-
- assert(url);
-
- p = urldb_find_url(url);
- if (!p)
- return NULL;
-
- /* no file cache */
- if (p->cache.filename[0] == 0)
- return NULL;
-
- /* todo: handle cache expiry etc */
- return filename_as_url(p->cache.filename);
-}
-
-/**
* Destroy urldb
*/
void urldb_destroy(void)
diff --git a/content/urldb.h b/content/urldb.h
index 70a873a37..0e655dbe1 100644
--- a/content/urldb.h
+++ b/content/urldb.h
@@ -117,8 +117,4 @@ void urldb_delete_cookie(const char *domain, const char *path, const char *name)
void urldb_load_cookies(const char *filename);
void urldb_save_cookies(const char *filename);
-/* Cache */
-bool urldb_set_cache_data(const char *url, const struct content *content);
-char *urldb_get_cache_data(const char *url);
-
#endif