From a70b3154e08d94c7d1eb026bd9b55ee9be398c3a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 10:47:40 -0500 Subject: [PATCH] *Remove stray methods --- src/dhtOnlineBase.ts | 10 ---------- 1 file changed, 10 deletions(-) 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)) {