From: Wolfgang (Blub) Bumiller Date: Sat, 1 Dec 2012 22:14:52 +0000 (+0100) Subject: Remove unused omit-nullbytes code in code.c X-Git-Tag: 0.1.9~136 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=836935fba2ca234896da98dc2a2868d8fbedb4d1;p=xonotic%2Fgmqcc.git Remove unused omit-nullbytes code in code.c --- diff --git a/code.c b/code.c index 052b13a..9b724cf 100644 --- a/code.c +++ b/code.c @@ -48,10 +48,6 @@ void code_init() { code_entfields = 0; - /* omit creation of null code */ - if (OPTS_FLAG(OMIT_NULL_BYTES)) - return; - /* * The way progs.dat is suppose to work is odd, there needs to be * some null (empty) statements, functions, and 28 globals @@ -146,8 +142,6 @@ bool code_write(const char *filename, const char *lnofile) { FILE *fp = NULL; size_t it = 2; - /* see proposal.txt */ - if (OPTS_FLAG(OMIT_NULL_BYTES)) {} code_header.statements.offset = sizeof(prog_header); code_header.statements.length = vec_size(code_statements); code_header.defs.offset = code_header.statements.offset + (sizeof(prog_section_statement) * vec_size(code_statements));