chore: delete unused function getFirstStatementConnection (#7228)

This commit is contained in:
Rachel Fenichel
2023-06-29 13:37:10 -07:00
committed by GitHub
parent 93126df164
commit 55decfe7c9
2 changed files with 0 additions and 27 deletions

View File

@@ -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.