Remove is_daed_, use STATE_DEAD.
Remove unused variables.