Removes Scanner and related code