Removed unneeded code.

Removed some unneeded code.