Removed dead code and unused arguments (+ fixed a few typos)

Dead code. The result is not used.