SMH110/widgets

Operator methods have lots of duplicated code

Closed this issue · 4 comments

We could fix this by having an operator function that takes the operator as a parameter. We would keep the addDivision, addPlus, etc methods but all they would do is call this operator function. This common function would not be on the API. This would greatly reduce the amount of code we have.

Done here c38b14e

I've reopened this issue because it said

We would keep the addDivision, addPlus, etc methods but all they would do is call this operator function

But these methods have been deleted

Fixed here 45c012c

Finalised in #28