From 224a157f608aaee895a7dfb8e825554259389987 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Mon, 6 Jan 2025 18:23:25 +0400 Subject: useless continue removed in a for loop --- src/main.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/main.go') diff --git a/src/main.go b/src/main.go index b14e713..8ba1728 100644 --- a/src/main.go +++ b/src/main.go @@ -242,8 +242,6 @@ func parse(tokens[]Token) []Operation { op.name = "push" op.strData = variables[variableIndex] i++ - ops = append(ops, op) - continue case "pull": if i + 1 >= len(tokens) { @@ -263,9 +261,6 @@ func parse(tokens[]Token) []Operation { op.name = "pull" op.strData = variables[variableIndex] i++ - /* FIXME: better solution */ - ops = append(ops, op) - continue case "var": if i + 1 >= len(tokens) { @@ -277,9 +272,6 @@ func parse(tokens[]Token) []Operation { op.strData = tokens[i + 1].str variables = append(variables, tokens[i + 1].str) i++ - /* FIXME: better solution */ - ops = append(ops, op) - continue } number, err := strconv.Atoi(tokens[i].str); @@ -303,7 +295,6 @@ func parse(tokens[]Token) []Operation { op.name = "syscall" op.intData = parameters } - /* FIXME: check for variable names that comes without push or pull */ if op.name == "" { fmt.Fprintf(os.Stderr, "Undefined word `%s` %s: %d:%d\n", tokens[i].str, tokens[i].file, tokens[i].line, tokens[i].offset) -- cgit v1.2.3