From 7de3100624bf77980e92f8e507a209dfe34a8309 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 6 Nov 2019 23:26:48 +0000 Subject: remove unecessary user warning --- content/handlers/html/html_interaction.c | 2 +- content/handlers/html/search.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/content/handlers/html/html_interaction.c b/content/handlers/html/html_interaction.c index 1eedf1b8f..330dd24d0 100644 --- a/content/handlers/html/html_interaction.c +++ b/content/handlers/html/html_interaction.c @@ -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)); } } diff --git a/content/handlers/html/search.c b/content/handlers/html/search.c index 3599951a7..1e2fa04f7 100644 --- a/content/handlers/html/search.c +++ b/content/handlers/html/search.c @@ -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; } -- cgit v1.2.3