remove unused variable (cppcheck)