remove needless function definition