delete unused variable.
authorMario de Sousa <msousa@fe.up.pt>
Tue, 29 Aug 2017 12:02:09 +0100
changeset 1058 5b54ecd4303b
parent 1057 2b25052fadca
child 1059 aef63aa7ef2e
delete unused variable.
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;} 
     
 
     /******************************************/