Removed useless line

Removed function to create event. It is not needed and just useless