MAINT: delete obsolete function