From: Ian Jackson Date: Sat, 30 Apr 2022 23:03:25 +0000 (+0100) Subject: script: piece_checkconflict_nrda: abolish unused return value X-Git-Tag: otter-1.1.0~388 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=509dadbe3ba8772367364484780754e10cb9a210;p=otter.git script: piece_checkconflict_nrda: abolish unused return value This was always false, and no longer used apparently. Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 1edca6e4..bfe4480a 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -2134,7 +2134,7 @@ update_error_handlers.PieceOpError = function handle_piece_update(m.state); } -function piece_checkconflict_nrda(piece: PieceId, p: PieceInfo): boolean { +function piece_checkconflict_nrda(piece: PieceId, p: PieceInfo) { // Our state machine for cseq: // // When we send an update (api_piece_x) we always set cseq. If the @@ -2168,7 +2168,6 @@ function piece_checkconflict_nrda(piece: PieceId, p: PieceInfo): boolean { } p.cseq_main = null; p.cseq_loose = null; - return false; } function test_swap_stack() {