Purge FETCH_TYPE which is unused throughout NetSurf. Clearing a todo in llcachec.

svn path=/trunk/netsurf/; revision=10300
This commit is contained in:
Daniel Silverstone 2010-04-08 12:16:52 +00:00
parent 2b1146bcb3
commit 6c9e4bea8e
6 changed files with 6 additions and 11 deletions

View File

@ -122,10 +122,10 @@ void ami_fetch_file_finalise(const char *scheme)
* *
* The caller must supply a callback function which is called when anything * The caller must supply a callback function which is called when anything
* interesting happens. The callback function is first called with msg * 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 * with FETCH_DATA with some data for the url, and finally with
* FETCH_FINISHED. Alternatively, FETCH_ERROR indicates an error occurred: * 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. * 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 * Some private data can be passed as the last parameter to fetch_start, and

View File

@ -200,10 +200,10 @@ void fetch_unref_fetcher(scheme_fetcher *fetcher)
* *
* The caller must supply a callback function which is called when anything * The caller must supply a callback function which is called when anything
* interesting happens. The callback function is first called with msg * 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 * with FETCH_DATA with some data for the url, and finally with
* FETCH_FINISHED. Alternatively, FETCH_ERROR indicates an error occurred: * 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. * FETCH_DATA, FETCH_FINISHED sequence if the server sends a replacement URL.
* *
*/ */

View File

@ -27,7 +27,6 @@
#include "utils/config.h" #include "utils/config.h"
typedef enum { typedef enum {
FETCH_TYPE,
FETCH_PROGRESS, FETCH_PROGRESS,
FETCH_HEADER, FETCH_HEADER,
FETCH_DATA, FETCH_DATA,

View File

@ -282,10 +282,10 @@ void fetch_curl_finalise(const char *scheme)
* *
* The caller must supply a callback function which is called when anything * The caller must supply a callback function which is called when anything
* interesting happens. The callback function is first called with msg * 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 * with FETCH_DATA with some data for the url, and finally with
* FETCH_FINISHED. Alternatively, FETCH_ERROR indicates an error occurred: * 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. * 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 * Some private data can be passed as the last parameter to fetch_start, and

View File

@ -1473,9 +1473,6 @@ void llcache_fetch_callback(fetch_msg msg, void *p, const void *data,
object->fetch.state = LLCACHE_FETCH_HEADERS; object->fetch.state = LLCACHE_FETCH_HEADERS;
error = llcache_fetch_process_header(object, data, size); error = llcache_fetch_process_header(object, data, size);
case FETCH_TYPE:
/** \todo Purge FETCH_TYPE completely */
break;
case FETCH_DATA: case FETCH_DATA:
/* Received some data */ /* Received some data */
object->fetch.state = LLCACHE_FETCH_DATA; object->fetch.state = LLCACHE_FETCH_DATA;

View File

@ -1766,7 +1766,6 @@ void plugin_fetch_callback(fetch_msg msg, void *p, const void *data,
content_broadcast(s->c, CONTENT_MSG_ERROR, msg_data); content_broadcast(s->c, CONTENT_MSG_ERROR, msg_data);
break; break;
case FETCH_TYPE:
case FETCH_NOTMODIFIED: case FETCH_NOTMODIFIED:
case FETCH_AUTH: case FETCH_AUTH:
case FETCH_CERT_ERR: case FETCH_CERT_ERR: