remove unused function, fixed #34