remove useless declarations found thanks to scan-build