remove cppcheck warnings. re #9394

remove new added at http://builds.mantidproject.org/job/cppcheck_develop/759/