Skip to content

Commit

Permalink
remove missing else branch error
Browse files Browse the repository at this point in the history
  • Loading branch information
SenkJu committed Sep 3, 2020
1 parent d7e7482 commit 1769c82
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/error/CompileError.hx
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,6 @@ class CompileError {
Sys.exit(0);
}

public static function missingElseBranch(cPosition:Int) {
final position = ErrorHelper.resolvePosition(cPosition);
printHead(position.line, position.linePos, "missing else branch");
printCode(position.line, position.linePos, -1, "else branch required when used as expression");

Sys.exit(0);
}

public static function valueEmpty(cPosition:Int) {
final position = ErrorHelper.resolvePosition(cPosition);
printHead(position.line, position.linePos, "expression value could be undefined");
Expand Down

0 comments on commit 1769c82

Please sign in to comment.