Remvoe a bunch of unused code.

Remvoe a bunch of unused code.