mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-08 10:34:31 +03:00
remove unused junk error values from content struct
saves over half a kilobyte for every content
This commit is contained in:
parent
ad4cdc62b8
commit
b832bfaea8
@ -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"));
|
||||
|
||||
|
@ -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[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user