Removes obsolete code