Remove unused event registration