remove unused code
Edit public event