Fix calculation using uninitialized value.

Implicit "this" is the devil.
Remove dead code.