remove unused p2p code