Removed unused methods from interface and Peer.