Removed duplicate methods

These where duplicate methods (both are also present in MathUtils.java) and it was not clear which one has been used.