Removve unused variables in angle.