Commit 868f22c7 authored by Arnaud Guerquin's avatar Arnaud Guerquin

Removed unreacheable code

parent 103ab6a1
...@@ -44,7 +44,6 @@ public class Script implements ScriptConstants { ...@@ -44,7 +44,6 @@ public class Script implements ScriptConstants {
while (true) { while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case SPACE: case SPACE:
;
break; break;
default: default:
jj_la1[0] = jj_gen; jj_la1[0] = jj_gen;
...@@ -74,16 +73,14 @@ public class Script implements ScriptConstants { ...@@ -74,16 +73,14 @@ public class Script implements ScriptConstants {
t = jj_consume_token(CLASS); t = jj_consume_token(CLASS);
/* Traitements divers TODO */ /* Traitements divers TODO */
s = "de la classe " + t.image; s = "de la classe " + t.image;
{if (true) return s;} return s;
break;
case NOMME: case NOMME:
jj_consume_token(NOMME); jj_consume_token(NOMME);
jj_consume_token(SPACE); jj_consume_token(SPACE);
t = jj_consume_token(NAME); t = jj_consume_token(NAME);
/* Traitements divers TODO */ /* Traitements divers TODO */
s = "nomm\u00e9 " + t.image; s = "nomm\u00e9 " + t.image;
{if (true) return s;} return s;
break;
case AVEC: case AVEC:
jj_consume_token(AVEC); jj_consume_token(AVEC);
jj_consume_token(SPACE); jj_consume_token(SPACE);
...@@ -96,7 +93,6 @@ public class Script implements ScriptConstants { ...@@ -96,7 +93,6 @@ public class Script implements ScriptConstants {
break; break;
default: default:
jj_la1[1] = jj_gen; jj_la1[1] = jj_gen;
;
} }
t = jj_consume_token(CMP); t = jj_consume_token(CMP);
/* Traitements divers TODO */ /* Traitements divers TODO */
...@@ -113,7 +109,7 @@ public class Script implements ScriptConstants { ...@@ -113,7 +109,7 @@ public class Script implements ScriptConstants {
s += "\u2265"; s += "\u2265";
break; break;
default: default:
{if (true) throw new ParseException("Invalid comparator: " + t.image);} throw new ParseException("Invalid comparator: " + t.image);
} }
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case SPACE: case SPACE:
...@@ -121,13 +117,11 @@ public class Script implements ScriptConstants { ...@@ -121,13 +117,11 @@ public class Script implements ScriptConstants {
break; break;
default: default:
jj_la1[2] = jj_gen; jj_la1[2] = jj_gen;
;
} }
t = jj_consume_token(VAL); t = jj_consume_token(VAL);
/* Traitements divers TODO */ /* Traitements divers TODO */
s += t.image; s += t.image;
{if (true) return s;} return s;
break;
case POSSEDANT: case POSSEDANT:
jj_consume_token(POSSEDANT); jj_consume_token(POSSEDANT);
jj_consume_token(SPACE); jj_consume_token(SPACE);
...@@ -142,10 +136,9 @@ public class Script implements ScriptConstants { ...@@ -142,10 +136,9 @@ public class Script implements ScriptConstants {
s += "potion"; s += "potion";
break; break;
default: default:
{if (true) throw new ParseException("Invalid item: " + t.image);} throw new ParseException("Invalid item: " + t.image);
} }
{if (true) return s;} return s;
break;
case 18: case 18:
jj_consume_token(18); jj_consume_token(18);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
...@@ -154,7 +147,6 @@ public class Script implements ScriptConstants { ...@@ -154,7 +147,6 @@ public class Script implements ScriptConstants {
break; break;
default: default:
jj_la1[3] = jj_gen; jj_la1[3] = jj_gen;
;
} }
s = Option(); s = Option();
/* Traitements divers TODO */ /* Traitements divers TODO */
...@@ -169,25 +161,21 @@ public class Script implements ScriptConstants { ...@@ -169,25 +161,21 @@ public class Script implements ScriptConstants {
break; break;
default: default:
jj_la1[4] = jj_gen; jj_la1[4] = jj_gen;
;
} }
jj_consume_token(19); jj_consume_token(19);
/* Traitements divers TODO */ /* Traitements divers TODO */
ss += " " + t.image.toLowerCase() + " " + s + ")"; ss += " " + t.image.toLowerCase() + " " + s + ")";
{if (true) return ss;} return ss;
break;
case NO: case NO:
jj_consume_token(NO); jj_consume_token(NO);
s = Option(); s = Option();
s = "non" + s; s = "non" + s;
{if (true) return s;} return s;
break;
default: default:
jj_la1[5] = jj_gen; jj_la1[5] = jj_gen;
jj_consume_token(-1); jj_consume_token(-1);
throw new ParseException(); throw new ParseException();
} }
throw new Error("Missing return statement in function");
} }
static private boolean jj_initialized_once = false; static private boolean jj_initialized_once = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment