Removes obsolete code.