remove unused function and it's testcase.