Remove unused code
Handling file related events
Remove unused events