MAINT: remove unused function