Remove some useless declarations (found by scan-build)