Removes event functionality