remove unecessary user warning

This commit is contained in:
Vincent Sanders 2019-11-06 23:26:48 +00:00
parent fca421e204
commit 7de3100624
2 changed files with 1 additions and 3 deletions

View File

@ -1101,7 +1101,7 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
}
if (res != NSERROR_OK) {
guit->misc->warning(messages_get_errorcode(res), NULL);
NSLOG(netsurf, ERROR, "%s", messages_get_errorcode(res));
}
}

View File

@ -87,13 +87,11 @@ search_create_context(struct content *c, content_type type, void *gui_data)
context = malloc(sizeof(struct search_context));
if (context == NULL) {
guit->misc->warning("NoMemory", 0);
return NULL;
}
search_head = malloc(sizeof(struct list_entry));
if (search_head == NULL) {
guit->misc->warning("NoMemory", 0);
free(context);
return NULL;
}