rlp: remove dead code