event: remove unused code