Skip to content

Commit

Permalink
clean: drop AddressBooks (unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Dec 14, 2021
1 parent 5ec5882 commit 7df0908
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 761 deletions.
1 change: 0 additions & 1 deletion src/ManagedNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import ManagedNodeAddress from "./ManagedNodeAddress.js";
/**
* @typedef {import("./account/AccountId.js").default} AccountId
* @typedef {import("./channel/Channel.js").default} Channel
* @typedef {import("./address_book/NodeAddress.js").default} NodeAddress
*/

/**
Expand Down
1 change: 0 additions & 1 deletion src/ManagedNodeAddress.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @typedef {import("./account/AccountId.js").default} AccountId
* @typedef {import("./channel/Channel.js").default} Channel
* @typedef {import("./address_book/NodeAddress.js").default} NodeAddress
*/

const HOST_AND_PORT = /^(.*)(:(\d+))?/;
Expand Down
23 changes: 0 additions & 23 deletions src/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { _ledgerIdToNetworkName } from "./NetworkName.js";

/**
* @typedef {import("./account/AccountId.js").default} AccountId
* @typedef {import("./address_book/NodeAddress.js").default} NodeAddress
* @typedef {import("./channel/Channel.js").default} Channel
* @typedef {import("./ManagedNodeAddress.js").default} ManagedNodeAddress
*/
Expand Down Expand Up @@ -36,15 +35,9 @@ export default class Node extends ManagedNode {
if (props.newNode != null) {
/** @type {AccountId} */
this._accountId = props.newNode.accountId;

/** @type {NodeAddress | null} */
this._nodeAddress = null;
} else if (props.cloneNode != null) {
/** @type {AccountId} */
this._accountId = props.cloneNode.node._accountId;

/** @type {NodeAddress | null} */
this._nodeAddress = props.cloneNode.node._nodeAddress;
} else {
throw new Error(`failed to create node: ${JSON.stringify(props)}`);
}
Expand Down Expand Up @@ -85,20 +78,4 @@ export default class Node extends ManagedNode {
get accountId() {
return this._accountId;
}

/**
* @returns {NodeAddress | null}
*/
get nodeAddress() {
return this._nodeAddress;
}

/**
* @param {NodeAddress} nodeAddress
* @returns {this}
*/
setNodeAddress(nodeAddress) {
this._nodeAddress = nodeAddress;
return this;
}
}
25 changes: 0 additions & 25 deletions src/address_book/AddressBooks.js

This file was deleted.

114 changes: 0 additions & 114 deletions src/address_book/Endpoint.js

This file was deleted.

101 changes: 0 additions & 101 deletions src/address_book/IPv4Address.js

This file was deleted.

69 changes: 0 additions & 69 deletions src/address_book/IPv4AddressPart.js

This file was deleted.

Loading

0 comments on commit 7df0908

Please sign in to comment.