Remove incomplete functions and test code.