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
parent 58f088c1ab
commit 09c902ce55
2 changed files with 5 additions and 7 deletions

View file

@ -62,13 +62,11 @@ struct FCompileContext
{
PClassActor *cls;
bool lax;
bool isconst;
FCompileContext(PClassActor *_cls = NULL, bool _lax = false, bool _isconst = false)
FCompileContext(PClassActor *_cls = NULL, bool _lax = false)
{
cls = _cls;
lax = _lax;
isconst = _isconst;
}
PSymbol *FindInClass(FName identifier)

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())