coverity: remove dead code