remove obsolete code.