remove unused junk error values from content struct

saves over half a kilobyte for every content
This commit is contained in:
Vincent Sanders 2020-05-06 22:22:16 +01:00
parent ad4cdc62b8
commit b832bfaea8
2 changed files with 0 additions and 8 deletions

View File

@ -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"));

View File

@ -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[];