# HG changeset patch # User Mario de Sousa # Date 1504004529 -3600 # Node ID 5b54ecd4303b504e5381ec43c278f5bbd6b66d01 # Parent 2b25052fadca4e0a6ec5d96c9909b10b14ca41b7 delete unused variable. diff -r 2b25052fadca -r 5b54ecd4303b stage4/generate_c/generate_c.cc --- a/stage4/generate_c/generate_c.cc Thu Aug 03 22:55:12 2017 +0100 +++ b/stage4/generate_c/generate_c.cc Tue Aug 29 12:02:09 2017 +0100 @@ -1594,7 +1594,6 @@ symbol_c *current_task_name; symbol_c *current_global_vars; bool configuration_name; - stage4out_c *s4o_ptr; public: generate_c_resources_c(stage4out_c *s4o_ptr, symbol_c *config_scope, symbol_c *resource_scope, unsigned long long time) @@ -1607,7 +1606,6 @@ current_task_name = NULL; current_global_vars = NULL; configuration_name = false; - generate_c_resources_c::s4o_ptr = s4o_ptr; }; virtual ~generate_c_resources_c(void) { @@ -1674,8 +1672,8 @@ /********************/ /* 2.1.6 - Pragmas */ /********************/ - void *visit(enable_code_generation_pragma_c * symbol) {s4o_ptr->enable_output(); return NULL;} - void *visit(disable_code_generation_pragma_c * symbol) {s4o_ptr->disable_output(); return NULL;} + void *visit(enable_code_generation_pragma_c * symbol) {s4o.enable_output(); return NULL;} + void *visit(disable_code_generation_pragma_c * symbol) {s4o.disable_output(); return NULL;} /******************************************/