[programmingPearls] remove non-necessary code