remove unused functions from sf functions_general