From ff0a1f3bc3a8293a048343611e2a442b1cb468d9 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 15 Jul 2017 13:05:04 -0400 Subject: [PATCH] deleted unused nonsense --- meta/4ed_metagen.cpp | 54 -------------------------------------------- site/4ed_sitegen.cpp | 48 --------------------------------------- 2 files changed, 102 deletions(-) diff --git a/meta/4ed_metagen.cpp b/meta/4ed_metagen.cpp index 9e25be80..60c7bb8a 100644 --- a/meta/4ed_metagen.cpp +++ b/meta/4ed_metagen.cpp @@ -311,60 +311,6 @@ generate_style(){ // Meta Parse Rules // -internal void -print_function_body_code(String *out, Parse_Context *context, i32 start){ - String pstr = {0}, lexeme = {0}; - Cpp_Token *token = 0; - - i32 do_print = 0; - i32 nest_level = 0; - i32 finish = false; - i32 do_whitespace_print = false; - i32 is_first = true; - - for (; (token = get_token(context)) != 0; get_next_token(context)){ - if (do_whitespace_print){ - pstr = str_start_end(context->data, start, token->start); - append(out, pstr); - } - else{ - do_whitespace_print = true; - } - - do_print = true; - if (token->type == CPP_TOKEN_COMMENT){ - lexeme = get_lexeme(*token, context->data); - if (check_and_fix_docs(&lexeme)){ - do_print = false; - } - } - else if (token->type == CPP_TOKEN_BRACE_OPEN){ - ++nest_level; - } - else if (token->type == CPP_TOKEN_BRACE_CLOSE){ - --nest_level; - if (nest_level == 0){ - finish = true; - } - } - if (is_first){ - do_print = false; - is_first = false; - } - - if (do_print){ - pstr = get_lexeme(*token, context->data); - append(out, pstr); - } - - start = token->start + token->size; - - if (finish){ - break; - } - } -} - struct App_API_Name{ String macro; String public_name; diff --git a/site/4ed_sitegen.cpp b/site/4ed_sitegen.cpp index 38c9c4b3..086ee85c 100644 --- a/site/4ed_sitegen.cpp +++ b/site/4ed_sitegen.cpp @@ -41,54 +41,6 @@ // Meta Parse Rules // -internal void -print_function_body_code(String *out, Parse_Context *context, i32 start){ - String pstr = {0}, lexeme = {0}; - Cpp_Token *token = 0; - - i32 do_print = 0; - i32 nest_level = 0; - i32 finish = 0; - i32 do_whitespace_print = 0; - for (; (token = get_token(context)) != 0; get_next_token(context)){ - if (do_whitespace_print){ - pstr = str_start_end(context->data, start, token->start); - append(out, pstr); - } - else{ - do_whitespace_print = 1; - } - - do_print = 1; - if (token->type == CPP_TOKEN_COMMENT){ - lexeme = get_lexeme(*token, context->data); - if (check_and_fix_docs(&lexeme)){ - do_print = 0; - } - } - else if (token->type == CPP_TOKEN_BRACE_OPEN){ - ++nest_level; - } - else if (token->type == CPP_TOKEN_BRACE_CLOSE){ - --nest_level; - if (nest_level == 0){ - finish = 1; - } - } - - if (do_print){ - pstr = get_lexeme(*token, context->data); - append(out, pstr); - } - - start = token->start + token->size; - - if (finish){ - break; - } - } -} - internal void do_html_output(Document_System *doc_system, char *dst_directory, Abstract_Item *doc){ String out = make_string_cap(fm__push(10 << 20), 0, 10 << 20);