Remove unecessary lines from publisher.publish example