clean the dead code