Remove isconst from FCompileContext.

- It's not used anymore, so keeping it around is pointless.
This commit is contained in:
Randy Heit 2013-08-02 21:09:49 -05:00
commit 09c902ce55
2 changed files with 5 additions and 7 deletions

View file

@ -208,7 +208,7 @@ static void ParseConstant (FScanner &sc, PSymbolTable *symt, PClassActor *cls)
FxExpression *expr = ParseExpression (sc, cls);
sc.MustGetToken(';');
FCompileContext ctx(cls, true, true);
FCompileContext ctx(cls, true);
expr = expr->Resolve(ctx);
if (!expr->isConstant())
{
@ -266,7 +266,7 @@ static void ParseEnum (FScanner &sc, PSymbolTable *symt, PClassActor *cls)
if (sc.CheckToken('='))
{
FxExpression *expr = ParseExpression (sc, cls);
FCompileContext ctx(cls, true, true);
FCompileContext ctx(cls, true);
expr = expr->Resolve(ctx);
if (!expr->isConstant())
{
@ -355,7 +355,7 @@ static void ParseNativeVariable (FScanner &sc, PSymbolTable *symt, PClassActor *
if (sc.CheckToken('['))
{
FxExpression *expr = ParseExpression (sc, cls);
FCompileContext ctx(cls, true, true);
FCompileContext ctx(cls, true);
expr = expr->Resolve(ctx);
if (!expr->isConstant())
{
@ -428,7 +428,7 @@ static void ParseUserVariable (FScanner &sc, PSymbolTable *symt, PClassActor *cl
if (sc.CheckToken('['))
{
FxExpression *expr = ParseExpression(sc, cls);
FCompileContext ctx(cls, true, true);
FCompileContext ctx(cls, true);
int maxelems;
expr = expr->Resolve(ctx);
if (!expr->isConstant())