Remove a bunch of functions that were never called.