Skip to content

Commit

Permalink
Remove unused client functions
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Apr 22, 2024
1 parent 11467e1 commit 2981991
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
11 changes: 0 additions & 11 deletions src/models/IClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export interface IClient {
* @returns The node information.
*/
info(): Promise<INodeInfo>;
/**
* Get the list of peers.
* @returns The list of peers.
*/
peers(): Promise<IPeer[]>;
/**
* Add a new peer.
* @param multiAddress The address of the peer to add.
Expand All @@ -27,10 +22,4 @@ export interface IClient {
* @returns Nothing.
*/
peerDelete(peerId: string): Promise<void>;
/**
* Get a peer.
* @param peerId The peer to delete.
* @returns The details for the created peer.
*/
peer(peerId: string): Promise<IPeer>;
}
17 changes: 0 additions & 17 deletions src/models/clients/singleNodeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ export class SingleNodeClient implements IClient {
return this.fetchJson<never, INodeInfo>(this._coreApiPath, "get", "info");
}

/**
* Get the list of peers.
* @returns The list of peers.
*/
public async peers(): Promise<IPeer[]> {
return this.fetchJson<never, IPeer[]>(this._managementApiPath, "get", "peers");
}

/**
* Add a new peer.
* @param multiAddress The address of the peer to add.
Expand Down Expand Up @@ -132,15 +124,6 @@ export class SingleNodeClient implements IClient {
return this.fetchJson<never, void>(this._managementApiPath, "delete", `peers/${peerId}`);
}

/**
* Get a peer.
* @param peerId The peer to delete.
* @returns The details for the created peer.
*/
public async peer(peerId: string): Promise<IPeer> {
return this.fetchJson<never, IPeer>(this._managementApiPath, "get", `peers/${peerId}`);
}

/**
* Perform a request in json format.
* @param basePath The base path for the request.
Expand Down

0 comments on commit 2981991

Please sign in to comment.