obsolete code removed