remove unused function from meshfunc