Remove useless code, and replace with assertion.
authormjsousa <msousa@fe.up.pt>
Thu, 10 May 2012 22:03:59 +0100
changeset 556 af3e378e98f9
parent 555 da6e089d0006
child 557 95a2fe60a15c
Remove useless code, and replace with assertion.
stage3/datatype_functions.cc
--- a/stage3/datatype_functions.cc	Thu May 10 19:20:18 2012 +0100
+++ b/stage3/datatype_functions.cc	Thu May 10 22:03:59 2012 +0100
@@ -25,7 +25,7 @@
 #include "datatype_functions.hh"
 #include "../absyntax_utils/absyntax_utils.hh"
 #include <vector>
-// #include <algorithm>
+
 
 
 
@@ -37,9 +37,7 @@
   if (NULL == singleton)    singleton = new elementary_type_c;
   if (NULL == singleton)    ERROR;
   const char *res           = (const char *)symbol->accept(*singleton);
-  if (NULL == res) {
-	  int i = 1;
-  }
+  if (NULL == res)          ERROR;
   return res;
 }