pnm: remove nonsense code