rm code with no side effects