Remove functions that are never called