From c8056ac9607f8b8417d803bad56668776f931430 Mon Sep 17 00:00:00 2001 From: arookas Date: Sun, 27 Dec 2015 22:54:18 -0500 Subject: [PATCH] Cleanup. --- ssc/context.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ssc/context.cs b/ssc/context.cs index 80c7969..61e9d57 100644 --- a/ssc/context.cs +++ b/ssc/context.cs @@ -187,8 +187,7 @@ namespace arookas { throw new sunRedeclaredVariableException(node); } - var variableInfo = Scopes.DeclareVariable(node.Value); - return variableInfo; + return Scopes.DeclareVariable(node.Value); } public sunConstantSymbol DeclareConstant(sunIdentifier node, sunExpression expression) { @@ -196,8 +195,7 @@ namespace arookas { throw new sunRedeclaredVariableException(node); } - var constInfo = Scopes.Top.DeclareConstant(node.Value, expression); - return constInfo; + return Scopes.Top.DeclareConstant(node.Value, expression); } public sunStorableSymbol ResolveStorable(sunIdentifier node) { @@ -263,7 +261,6 @@ namespace arookas return symbol; } - void WriteHeader() { mWriter.WriteString("SPCB");