Remove unused node and event variables in getEventListener