summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-04-08 12:16:52 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-04-08 12:16:52 +0000
commit6c9e4bea8eeb22665269226fb240f62fff850f81 (patch)
tree3094230f2e7163d3a7ad5bb9a069ccfb36f444a3 /content
parent2b1146bcb3c9febc89d53c49d88559f70b56043e (diff)
downloadnetsurf-6c9e4bea8eeb22665269226fb240f62fff850f81.tar.gz
netsurf-6c9e4bea8eeb22665269226fb240f62fff850f81.tar.bz2
Purge FETCH_TYPE which is unused throughout NetSurf. Clearing a todo in llcachec.
svn path=/trunk/netsurf/; revision=10300
Diffstat (limited to 'content')
-rw-r--r--content/fetch.c4
-rw-r--r--content/fetch.h1
-rw-r--r--content/fetchers/fetch_curl.c4
-rw-r--r--content/llcache.c3
4 files changed, 4 insertions, 8 deletions
diff --git a/content/fetch.c b/content/fetch.c
index acb4b3766..b1c2e216c 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -200,10 +200,10 @@ void fetch_unref_fetcher(scheme_fetcher *fetcher)
*
* The caller must supply a callback function which is called when anything
* interesting happens. The callback function is first called with msg
- * FETCH_TYPE, with the Content-Type header in data, then one or more times
+ * FETCH_HEADER, with the header in data, then one or more times
* with FETCH_DATA with some data for the url, and finally with
* FETCH_FINISHED. Alternatively, FETCH_ERROR indicates an error occurred:
- * data contains an error message. FETCH_REDIRECT may replace the FETCH_TYPE,
+ * data contains an error message. FETCH_REDIRECT may replace the FETCH_HEADER,
* FETCH_DATA, FETCH_FINISHED sequence if the server sends a replacement URL.
*
*/
diff --git a/content/fetch.h b/content/fetch.h
index 24d8816b8..c872518c0 100644
--- a/content/fetch.h
+++ b/content/fetch.h
@@ -27,7 +27,6 @@
#include "utils/config.h"
typedef enum {
- FETCH_TYPE,
FETCH_PROGRESS,
FETCH_HEADER,
FETCH_DATA,
diff --git a/content/fetchers/fetch_curl.c b/content/fetchers/fetch_curl.c
index dd9f3ca17..62b8228d1 100644
--- a/content/fetchers/fetch_curl.c
+++ b/content/fetchers/fetch_curl.c
@@ -282,10 +282,10 @@ void fetch_curl_finalise(const char *scheme)
*
* The caller must supply a callback function which is called when anything
* interesting happens. The callback function is first called with msg
- * FETCH_TYPE, with the Content-Type header in data, then one or more times
+ * FETCH_HEADER, with the header in data, then one or more times
* with FETCH_DATA with some data for the url, and finally with
* FETCH_FINISHED. Alternatively, FETCH_ERROR indicates an error occurred:
- * data contains an error message. FETCH_REDIRECT may replace the FETCH_TYPE,
+ * data contains an error message. FETCH_REDIRECT may replace the FETCH_HEADER,
* FETCH_DATA, FETCH_FINISHED sequence if the server sends a replacement URL.
*
* Some private data can be passed as the last parameter to fetch_start, and
diff --git a/content/llcache.c b/content/llcache.c
index d2891d4c8..1d1b043b3 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -1473,9 +1473,6 @@ void llcache_fetch_callback(fetch_msg msg, void *p, const void *data,
object->fetch.state = LLCACHE_FETCH_HEADERS;
error = llcache_fetch_process_header(object, data, size);
- case FETCH_TYPE:
- /** \todo Purge FETCH_TYPE completely */
- break;
case FETCH_DATA:
/* Received some data */
object->fetch.state = LLCACHE_FETCH_DATA;