Cleaned up some code.

I removed some functions that have been commented out for a few years and have not been used.