From b832bfaea8099217ee58cae21ee0807cd9a475db Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 6 May 2020 22:22:16 +0100 Subject: remove unused junk error values from content struct saves over half a kilobyte for every content --- content/content.c | 1 - content/content_protected.h | 7 ------- 2 files changed, 8 deletions(-) diff --git a/content/content.c b/content/content.c index 552ee071e..6ffaebf6c 100644 --- a/content/content.c +++ b/content/content.c @@ -113,7 +113,6 @@ nserror content__init(struct content *c, const content_handler *handler, c->locked = false; c->total_size = 0; c->http_code = 0; - c->error_count = 0; content_set_status(c, messages_get("Loading")); diff --git a/content/content_protected.h b/content/content_protected.h index af0ee7259..343a3f572 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -149,13 +149,6 @@ struct content { unsigned long total_size; /**< Total data size, 0 if unknown. */ long http_code; /**< HTTP status code, 0 if not HTTP. */ - - /** Array of first n rendering errors or warnings. */ - struct { - const char *token; - unsigned int line; /**< Line no, 0 if not applicable. */ - } error_list[40]; - unsigned int error_count; /**< Number of valid error entries. */ }; extern const char * const content_type_name[]; -- cgit v1.2.3