Licensed under GPLv3.
Removed unused event hander.