Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/store/componentPin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,6 @@ export class CCComponentPinStore extends EventEmitter<CCComponentPinStoreEvents>
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
Expand Down
11 changes: 0 additions & 11 deletions src/store/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,6 @@ export class CCConnectionStore extends EventEmitter<CCConnectionStoreEvents> {
);
}

/**
* 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`
Expand Down
12 changes: 0 additions & 12 deletions src/store/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,6 @@ export class CCNodeStore extends EventEmitter<CCNodeStoreEvents> {
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,
Expand Down
Loading