Delete unused variable lines as requested by Cody.

Refs #1777.