From 55decfe7c9958edc52c512f057c2785dbbacb72e Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 29 Jun 2023 13:37:10 -0700 Subject: [PATCH] chore: delete unused function getFirstStatementConnection (#7228) --- core/block.ts | 19 ------------------- core/block_svg.ts | 8 -------- 2 files changed, 27 deletions(-) diff --git a/core/block.ts b/core/block.ts index a4627e3ad..70f16bd6e 100644 --- a/core/block.ts +++ b/core/block.ts @@ -624,25 +624,6 @@ export class Block implements IASTNodeLocation, IDeletable { return this.previousConnection && this.previousConnection.targetBlock(); } - /** - * Return the connection on the first statement input on this block, or null - * if there are none. - * - * @returns The first statement connection or null. - * @internal - */ - getFirstStatementConnection(): Connection | null { - for (let i = 0, input; (input = this.inputList[i]); i++) { - if ( - input.connection && - input.connection.type === ConnectionType.NEXT_STATEMENT - ) { - return input.connection; - } - } - return null; - } - /** * Return the top-most block in this block's tree. * This will return itself if this block is at the top level. diff --git a/core/block_svg.ts b/core/block_svg.ts index ed942b1aa..fea8b4320 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -1529,14 +1529,6 @@ export class BlockSvg } } - /** - * @returns The first statement connection or null. - * @internal - */ - override getFirstStatementConnection(): RenderedConnection | null { - return super.getFirstStatementConnection() as RenderedConnection | null; - } - /** * Find all the blocks that are directly nested inside this one. * Includes value and statement inputs, as well as any following statement.