Prune unused methods.