Delete unused variable lines as requested by Cody.

Refs #1777.
Merge commit '4a6ae86601d86da95ebc737565aff5e383aaa237'