*Remove stray methods
This commit is contained in:
parent
0ff1a24de2
commit
a70b3154e0
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue