summaryrefslogtreecommitdiff
path: root/render/html_script.c
diff options
context:
space:
mode:
authorRob Kendrick <rjek@rjek.com>2014-01-05 14:39:08 +0000
committerRob Kendrick <rjek@rjek.com>2014-01-05 14:39:08 +0000
commit1bd4a34a271e4f839298f56d8e45f02dfa9d378b (patch)
tree4844105624966163d125c5b7b6ad4eaf1ac8c0b6 /render/html_script.c
parent33f94c265e34c6ec2a9c0603f814deda47f77849 (diff)
downloadnetsurf-1bd4a34a271e4f839298f56d8e45f02dfa9d378b.tar.gz
netsurf-1bd4a34a271e4f839298f56d8e45f02dfa9d378b.tar.bz2
Remove asserts for default cases from all content message handlers; this is laborious and is no longer useful for catching bugs.
Diffstat (limited to 'render/html_script.c')
-rw-r--r--render/html_script.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/render/html_script.c b/render/html_script.c
index 4aa8aff11..4a82bcd70 100644
--- a/render/html_script.c
+++ b/render/html_script.c
@@ -172,8 +172,6 @@ convert_script_async_cb(hlcache_handle *script,
parent->base.active--;
LOG(("%d fetches active", parent->base.active));
-
-
break;
case CONTENT_MSG_ERROR:
@@ -188,11 +186,8 @@ convert_script_async_cb(hlcache_handle *script,
break;
- case CONTENT_MSG_STATUS:
- break;
-
default:
- assert(0);
+ break;
}
return NSERROR_OK;
@@ -219,11 +214,6 @@ convert_script_defer_cb(hlcache_handle *script,
assert(i != parent->scripts_count);
switch (event->type) {
- case CONTENT_MSG_LOADING:
- break;
-
- case CONTENT_MSG_READY:
- break;
case CONTENT_MSG_DONE:
LOG(("script %d done '%s'", i,
@@ -245,11 +235,8 @@ convert_script_defer_cb(hlcache_handle *script,
break;
- case CONTENT_MSG_STATUS:
- break;
-
default:
- assert(0);
+ break;
}
/* if there are no active fetches remaining begin post parse
@@ -333,19 +320,8 @@ convert_script_sync_cb(hlcache_handle *script,
break;
- case CONTENT_MSG_LOADING:
- case CONTENT_MSG_READY:
- case CONTENT_MSG_STATUS:
- case CONTENT_MSG_REDIRECT:
- /* messages content handler will legitamately recive
- * but does not need to handle
- */
- break;
-
default:
- /* all other messages are unexpected and fatal */
- LOG(("Unhandled message type %d", event->type));
- assert(0);
+ break;
}
/* if there are no active fetches remaining begin post parse