Remove obsolete threading function