remove obsoleted code