summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_compiler.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-07-01 14:32:04 +0200
committerGitHub <noreply@github.com>2019-07-01 14:32:04 +0200
commitb0ce9401ffa731cc346ab6762fd0794709634428 (patch)
treec2e6de01b9efec28c959dbfd5cd59a0973d432e7 /modules/gdscript/gdscript_compiler.cpp
parent531c92a53e5e7b9a1cb55249ef6086e874239872 (diff)
parent3c154eb93b3a098354bf6d18a9428826ec193f90 (diff)
downloadredot-engine-b0ce9401ffa731cc346ab6762fd0794709634428.tar.gz
Merge pull request #30126 from qarmin/remove_unnecessary_code
Remove unnecessary code and add some error explanations
Diffstat (limited to 'modules/gdscript/gdscript_compiler.cpp')
-rw-r--r--modules/gdscript/gdscript_compiler.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp
index caffe04700..4c976bd2e0 100644
--- a/modules/gdscript/gdscript_compiler.cpp
+++ b/modules/gdscript/gdscript_compiler.cpp
@@ -1259,8 +1259,6 @@ int GDScriptCompiler::_parse_expression(CodeGen &codegen, const GDScriptParser::
ERR_FAIL_V(-1); //unreachable code
} break;
}
-
- ERR_FAIL_V(-1); //unreachable code
}
Error GDScriptCompiler::_parse_block(CodeGen &codegen, const GDScriptParser::BlockNode *p_block, int p_stack_level, int p_break_addr, int p_continue_addr) {