Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Jan 31, 2016
1 parent ff6e28b commit d2eb969
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -4304,17 +4304,13 @@ void ReportTable(
#ifdef LEMONPLUSPLUS


#ifdef LEMONPLUSPLUS
/* set the %token_type and %default_type if not set */
if (!lemp->tokentype) {
lemp->tokentype = "void *";
}
if (!lemp->vartype) {
lemp->vartype = lemp->tokentype;
}
#endif



/* generate non-terminal destructors. */

Expand All @@ -4324,19 +4320,6 @@ void ReportTable(
//if (sp->type == MULTITERMINAL) continue;

sp->destructor = "";
#if 0
if (sp->datatype == 0) {
switch(sp->type) {
case NONTERMINAL:
sp->datatype = lemp->vartype;
break;
case TERMINAL:
case MULTITERMINAL:
sp->datatype = lemp->tokentype;
break;
}
}
#endif
}

// error symbol, if needed
Expand Down

0 comments on commit d2eb969

Please sign in to comment.