Ah, didn't looked close enough. cppcheck still shows it as error when the return is gone. But since it is of no use I can remove it if necessary.