diff --git a/src/store/componentPin.ts b/src/store/componentPin.ts index a0f203a..bc6f0f9 100644 --- a/src/store/componentPin.ts +++ b/src/store/componentPin.ts @@ -162,16 +162,6 @@ export class CCComponentPinStore extends EventEmitter return pin; } - /** - * Get all of pins by component id - * @param componentId id of component - * @returns pins of component - * @deprecated in favor of {@link getManyByComponentId} - */ - getPinIdsByComponentId(componentId: CCComponentId): CCComponentPinId[] { - return this.getManyByComponentId(componentId).map((pin) => pin.id); - } - /** * Get all of pins by component id * @param componentId id of component diff --git a/src/store/connection.ts b/src/store/connection.ts index 7976f5e..9089ba7 100644 --- a/src/store/connection.ts +++ b/src/store/connection.ts @@ -185,17 +185,6 @@ export class CCConnectionStore extends EventEmitter { ); } - /** - * Check if no connection of the pin of the node existsno connection of the pin of the node exists - * @param nodeId id of node - * @param pinId id of pin - * @returns if no connection of the pin of the node exists, `true` returns (otherwise `false`) - * @deprecated in favor of {@link getConnectionsByNodePinId} - */ - hasNoConnectionOf(nodePinId: CCNodePinId): boolean { - return this.getConnectionsByNodePinId(nodePinId).length === 0; - } - /** * Create a new connection * @param partialConnection connection without `id` diff --git a/src/store/node.ts b/src/store/node.ts index af67c7e..edb6566 100644 --- a/src/store/node.ts +++ b/src/store/node.ts @@ -114,18 +114,6 @@ export class CCNodeStore extends EventEmitter { return this.#nodes.get(id); } - /** - * Get all of nodes by parent component id - * @param parentComponentId id of parent component - * @returns nodes of parent component - * @deprecated in favor of {@link getManyByParentComponentId} - */ - getNodeIdsByParentComponentId(parentComponentId: CCComponentId): CCNodeId[] { - return this.getManyByParentComponentId(parentComponentId).map( - (node) => node.id, - ); - } - getManyByParentComponentId(parentComponentId: CCComponentId): CCNode[] { return [...this.#nodes.values()].filter( (node) => node.parentComponentId === parentComponentId,