Fixed GCC compiler warning

Fixed a compiler warning by removing an unused variable

Refs #2057
Merge branch 'feature/2057_FlatBackground_return_test' into develop