Revert "Add a UserData pointer so that the callback functions can easily access user state."

This reverts commit c40dc84909ff10ee6ef2e0484032e46db91de24f.