From 07733ca056445378c801e599758a5be493c3d4ec Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sat, 9 Feb 2019 13:38:01 +0100 Subject: [PATCH] compiler: remove some dead code reported by go vet --- compiler/compiler.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/compiler.go b/compiler/compiler.go index ab8fe8c6..d54219c6 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -2239,7 +2239,6 @@ func (c *Compiler) parseBinOp(op token.Token, typ types.Type, x, y llvm.Value, p default: return llvm.Value{}, c.makeError(pos, "unknown: binop on struct: "+op.String()) } - return result, nil case *types.Struct: // Compare each struct field and combine the result. From the spec: // Struct values are comparable if all their fields are comparable. @@ -2268,7 +2267,6 @@ func (c *Compiler) parseBinOp(op token.Token, typ types.Type, x, y llvm.Value, p default: return llvm.Value{}, c.makeError(pos, "unknown: binop on struct: "+op.String()) } - return result, nil default: return llvm.Value{}, c.makeError(pos, "todo: binop type: "+typ.String()) }