private void eliminateDeadCode ( TypeElement type , AbstractTypeDeclaration node ) { List < BodyDeclaration > decls = node . getBodyDeclarations ( ) ; String clazz = elementUtil . getBinaryName ( type ) ; if ( deadCodeMap . containsClass ( clazz ) ) { stripClass ( node ) ; } else { removeDeadMethods ( clazz , decls ) ; removeDeadFields ( clazz , decls ) ; } }
Remove dead members from a type .