Remove logically dead code.

Fixes CID #1109592.