summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-06 22:22:16 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-06 22:22:16 +0100
commitb832bfaea8099217ee58cae21ee0807cd9a475db (patch)
treeb1bd17307c9d5aafad31410ec2aa5e11b731f06a /content
parentad4cdc62b8cffd7d22b33623287a1679eb90c4b7 (diff)
downloadnetsurf-b832bfaea8099217ee58cae21ee0807cd9a475db.tar.gz
netsurf-b832bfaea8099217ee58cae21ee0807cd9a475db.tar.bz2
remove unused junk error values from content struct
saves over half a kilobyte for every content
Diffstat (limited to 'content')
-rw-r--r--content/content.c1
-rw-r--r--content/content_protected.h7
2 files changed, 0 insertions, 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[];