diff --git a/src/dhtOnlineBase.ts b/src/dhtOnlineBase.ts index 85efafd..3343ec0 100644 --- a/src/dhtOnlineBase.ts +++ b/src/dhtOnlineBase.ts @@ -175,11 +175,6 @@ export default class DHTOnlineBase extends EventEmitter { private _setPeer(id: Buffer | string, data: any) { this.graph.addNode(this._maybeHexify(id), data); } - - private _removePeer(id: Buffer | string) { - this.graph.removeNode(this._maybeHexify(id)); - } - private _ensurePeer(id: Buffer | string) { id = this._maybeHexify(id); if (!this._hasSeenPeer(id)) { @@ -239,11 +234,6 @@ export default class DHTOnlineBase extends EventEmitter { this._recalculate(); } - - private _getPeerConnectedTo(id: string) { - return this.graph.successors(id); - } - private _getBootstrapInfo() { const state: Bootstrap = {}; for (const [id, rawData] of this.graph.nodes(true)) {