diff --git a/calculate.go b/calculate.go index 3c50b24..6233cc7 100644 --- a/calculate.go +++ b/calculate.go @@ -193,13 +193,6 @@ func (operation *Operation) inexactSolution () (solution float64, err error) { } case OpcodeSubtract: - if len(operation.operands) == 1 { - solution, err = operation.operands[0].InexactSolution() - solution *= -1 - if err != nil { return } - break - } - for index, operand := range operation.operands { subSolution, err = operand.InexactSolution() if err != nil { return }