registry: remove unused event code