summaryrefslogtreecommitdiff
path: root/gtk
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 /gtk
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 'gtk')
-rw-r--r--gtk/theme.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gtk/theme.c b/gtk/theme.c
index 9d50c5931..ff0144cc8 100644
--- a/gtk/theme.c
+++ b/gtk/theme.c
@@ -793,11 +793,8 @@ theme_install_callback(hlcache_handle *c,
const hlcache_event *event, void *pw)
{
switch (event->type) {
- case CONTENT_MSG_READY:
- break;
- case CONTENT_MSG_DONE:
- {
+ case CONTENT_MSG_DONE: {
const char *source_data;
unsigned long source_size;
@@ -807,21 +804,14 @@ theme_install_callback(hlcache_handle *c,
warn_user("ThemeInvalid", 0);
hlcache_handle_release(c);
+ break;
}
- break;
case CONTENT_MSG_ERROR:
warn_user(event->data.error, 0);
break;
- case CONTENT_MSG_STATUS:
- break;
-
- case CONTENT_MSG_LOADING:
- case CONTENT_MSG_REFORMAT:
- case CONTENT_MSG_REDRAW:
default:
- assert(0);
break;
}