Spring cleaning

Clean out a whole lot of unused code and warnings.