diff --git a/ssc/scope stack.cs b/ssc/scope stack.cs index 4711541..c44240d 100644 --- a/ssc/scope stack.cs +++ b/ssc/scope stack.cs @@ -57,21 +57,11 @@ namespace arookas } sunVariableSymbol DeclareGlobal(string name) { - var variableInfo = Top.DeclareVariable(name, 0, GlobalCount); - if (variableInfo == null) - { - return null; - } - return variableInfo; + return Top.DeclareVariable(name, 0, GlobalCount); } sunVariableSymbol DeclareLocal(string name) { - var variableInfo = Top.DeclareVariable(name, 1, LocalCount); - if (variableInfo == null) - { - return null; - } - return variableInfo; + return Top.DeclareVariable(name, 1, LocalCount); } public IEnumerator GetEnumerator() { return Stack.GetEnumerator(); }