From 170dc5d52419450edc440c054a94135c1cc1296a Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 5 Aug 2019 20:56:07 +0100 Subject: 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 --- content/handlers/css/css.c | 8 -------- content/handlers/html/html_css.c | 10 ---------- content/handlers/html/html_object.c | 10 ---------- content/handlers/html/html_script.c | 30 ------------------------------ 4 files changed, 58 deletions(-) (limited to 'content/handlers') diff --git a/content/handlers/css/css.c b/content/handlers/css/css.c index 0ca47a2b6..af2a9bc88 100644 --- a/content/handlers/css/css.c +++ b/content/handlers/css/css.c @@ -641,14 +641,6 @@ nserror nscss_import(hlcache_handle *handle, error = nscss_import_complete(ctx); /* Already released handle */ break; - case CONTENT_MSG_QUERY: - /** \todo QUERY - Decide what is right here */ - /* For now, the only safe decision is to cancel the fetch */ - event->data.query_msg->cb(false, event->data.query_msg->cb_pw); - break; - case CONTENT_MSG_QUERY_FINISHED: - /** \todo QUERY - Decide what is right here */ - break; default: break; } diff --git a/content/handlers/html/html_css.c b/content/handlers/html/html_css.c index 37a70fa70..eb80c0e71 100644 --- a/content/handlers/html/html_css.c +++ b/content/handlers/html/html_css.c @@ -129,16 +129,6 @@ html_convert_css_callback(hlcache_handle *css, /* Really don't want this to continue after the switch */ return NSERROR_OK; - case CONTENT_MSG_QUERY: - /** \todo QUERY - Decide what is right here */ - /* For now, the only safe decision is to cancel the fetch */ - event->data.query_msg->cb(false, event->data.query_msg->cb_pw); - return NSERROR_OK; - - case CONTENT_MSG_QUERY_FINISHED: - /** \todo QUERY - Decide what is right here */ - return NSERROR_OK; - default: break; } diff --git a/content/handlers/html/html_object.c b/content/handlers/html/html_object.c index dc8524499..acd32565b 100644 --- a/content/handlers/html/html_object.c +++ b/content/handlers/html/html_object.c @@ -451,16 +451,6 @@ html_object_callback(hlcache_handle *object, } break; - case CONTENT_MSG_QUERY: - /** \todo QUERY - Decide what is right here */ - /* For now, the only safe decision is to cancel the fetch */ - event->data.query_msg->cb(false, event->data.query_msg->cb_pw); - return NSERROR_OK; - - case CONTENT_MSG_QUERY_FINISHED: - /** \todo QUERY - Decide what is right here */ - return NSERROR_OK; - default: break; } diff --git a/content/handlers/html/html_script.c b/content/handlers/html/html_script.c index 6e037251c..f7131e2a2 100644 --- a/content/handlers/html/html_script.c +++ b/content/handlers/html/html_script.c @@ -193,16 +193,6 @@ convert_script_async_cb(hlcache_handle *script, break; - case CONTENT_MSG_QUERY: - /** \todo QUERY - Decide what is right here */ - /* For now, the only safe decision is to cancel the fetch */ - event->data.query_msg->cb(false, event->data.query_msg->cb_pw); - return NSERROR_OK; - - case CONTENT_MSG_QUERY_FINISHED: - /** \todo QUERY - Decide what is right here */ - return NSERROR_OK; - default: break; } @@ -267,16 +257,6 @@ convert_script_defer_cb(hlcache_handle *script, break; - case CONTENT_MSG_QUERY: - /** \todo QUERY - Decide what is right here */ - /* For now, the only safe decision is to cancel the fetch */ - event->data.query_msg->cb(false, event->data.query_msg->cb_pw); - return NSERROR_OK; - - case CONTENT_MSG_QUERY_FINISHED: - /** \todo QUERY - Decide what is right here */ - return NSERROR_OK; - default: break; } @@ -367,16 +347,6 @@ convert_script_sync_cb(hlcache_handle *script, break; - case CONTENT_MSG_QUERY: - /** \todo QUERY - Decide what is right here */ - /* For now, the only safe decision is to cancel the fetch */ - event->data.query_msg->cb(false, event->data.query_msg->cb_pw); - return NSERROR_OK; - - case CONTENT_MSG_QUERY_FINISHED: - /** \todo QUERY - Decide what is right here */ - return NSERROR_OK; - default: break; } -- cgit v1.2.3