img2enc: remove dead code