]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Remove unused omit-nullbytes code in code.c
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 1 Dec 2012 22:14:52 +0000 (23:14 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 1 Dec 2012 22:14:52 +0000 (23:14 +0100)
code.c

diff --git a/code.c b/code.c
index 052b13a8937016bd2cb5997b6989cc17510c43e7..9b724cfc49100901230510793c5643c11c70e751 100644 (file)
--- 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));