mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 21:09:02 +00:00
compiler: remove some dead code reported by go vet
This commit is contained in:
committed by
Ron Evans
parent
92d9b780b5
commit
07733ca056
@@ -2239,7 +2239,6 @@ func (c *Compiler) parseBinOp(op token.Token, typ types.Type, x, y llvm.Value, p
|
|||||||
default:
|
default:
|
||||||
return llvm.Value{}, c.makeError(pos, "unknown: binop on struct: "+op.String())
|
return llvm.Value{}, c.makeError(pos, "unknown: binop on struct: "+op.String())
|
||||||
}
|
}
|
||||||
return result, nil
|
|
||||||
case *types.Struct:
|
case *types.Struct:
|
||||||
// Compare each struct field and combine the result. From the spec:
|
// Compare each struct field and combine the result. From the spec:
|
||||||
// Struct values are comparable if all their fields are comparable.
|
// 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:
|
default:
|
||||||
return llvm.Value{}, c.makeError(pos, "unknown: binop on struct: "+op.String())
|
return llvm.Value{}, c.makeError(pos, "unknown: binop on struct: "+op.String())
|
||||||
}
|
}
|
||||||
return result, nil
|
|
||||||
default:
|
default:
|
||||||
return llvm.Value{}, c.makeError(pos, "todo: binop type: "+typ.String())
|
return llvm.Value{}, c.makeError(pos, "todo: binop type: "+typ.String())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user