Removed unused and undocumented code that doesn't seem to do much of anything useful.