Remove unused events.