Remove duplicate definition of pollCallback.