diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-05 20:56:07 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-05 20:56:07 +0100 |
commit | 170dc5d52419450edc440c054a94135c1cc1296a (patch) | |
tree | 0943167d6fa71716bd1cd8936b94cfd02fe10e5c /content/hlcache.c | |
parent | bfb1bb119241d85bb9b400881328496e12a39aed (diff) | |
download | netsurf-170dc5d52419450edc440c054a94135c1cc1296a.tar.gz netsurf-170dc5d52419450edc440c054a94135c1cc1296a.tar.bz2 |
Excise the llcache query pathway.
In further preparation for the auth and cert queries being handled
as special contents from `about:` this excises the query pathway
from the llcache pretty much entirely.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/hlcache.c')
-rw-r--r-- | content/hlcache.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/content/hlcache.c b/content/hlcache.c index d2b612d05..aa782b2e1 100644 --- a/content/hlcache.c +++ b/content/hlcache.c @@ -515,8 +515,8 @@ static nserror hlcache_llcache_callback(llcache_handle *handle, hlcache_event hlevent; hlevent.type = CONTENT_MSG_ERROR; - hlevent.data.errordata.errorcode = NSERROR_UNKNOWN; - hlevent.data.errordata.errormsg = event->data.msg; + hlevent.data.errordata.errorcode = event->data.error.code; + hlevent.data.errordata.errormsg = event->data.error.msg; ctx->handle->cb(ctx->handle, &hlevent, ctx->handle->pw); } @@ -534,28 +534,6 @@ static nserror hlcache_llcache_callback(llcache_handle *handle, ctx->handle->cb(ctx->handle, &hlevent, ctx->handle->pw); } break; - case LLCACHE_EVENT_QUERY: - if (ctx->handle->cb != NULL) { - hlcache_event hlevent; - - hlevent.type = CONTENT_MSG_QUERY; - hlevent.data.query_msg = &event->data.query; - - ctx->handle->cb(ctx->handle, &hlevent, ctx->handle->pw); - } else { - return NSERROR_NOT_IMPLEMENTED; - } - break; - case LLCACHE_EVENT_QUERY_FINISHED: - if (ctx->handle->cb != NULL) { - hlcache_event hlevent; - - hlevent.type = CONTENT_MSG_QUERY_FINISHED; - hlevent.data.query_finished_pw = event->data.query.cb_pw; - - ctx->handle->cb(ctx->handle, &hlevent, ctx->handle->pw); - } - break; } return NSERROR_OK; |