The return value was being used in conditional (if) flow control. After removing the need of it in the if statements, the returning value was dead code.