Remove obsolete function