cppcheck: unused functions