Remove a variable which is only assigned.

Issue found by cppcheck.