From 0eed410bd024d02b963ff022452a715a117bbff2 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 20 Jun 2026 05:35:41 +0800 Subject: [PATCH] refactor(tooling): remove unused cleanup helpers --- extensions/synology-chat/src/channel.integration.test.ts | 7 ------- scripts/e2e/parallels/windows-smoke.ts | 5 ----- scripts/github/real-behavior-proof-policy.mjs | 4 ---- 3 files changed, 16 deletions(-) diff --git a/extensions/synology-chat/src/channel.integration.test.ts b/extensions/synology-chat/src/channel.integration.test.ts index 888376a51f8..b369a7bf77f 100644 --- a/extensions/synology-chat/src/channel.integration.test.ts +++ b/extensions/synology-chat/src/channel.integration.test.ts @@ -1,5 +1,4 @@ // Synology Chat tests cover channel.integration plugin behavior. -import type { IncomingMessage, ServerResponse } from "node:http"; import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { buildChannelInboundEventContextMock, @@ -11,12 +10,6 @@ import { } from "./channel.test-mocks.js"; import { makeFormBody, makeReq, makeRes } from "./test-http-utils.js"; -type _RegisteredRoute = { - path: string; - accountId: string; - handler: (req: IncomingMessage, res: ServerResponse) => Promise; -}; - let createSynologyChatPlugin: typeof import("./channel.js").createSynologyChatPlugin; function makeStartContext(cfg: T, accountId: string, abortSignal: AbortSignal) { diff --git a/scripts/e2e/parallels/windows-smoke.ts b/scripts/e2e/parallels/windows-smoke.ts index 6c9abd87750..800c3d23733 100755 --- a/scripts/e2e/parallels/windows-smoke.ts +++ b/scripts/e2e/parallels/windows-smoke.ts @@ -439,11 +439,6 @@ class WindowsSmoke extends SmokeRunController { private log = (text: string): void => this.phases.append(text); - private guestExec = ( - args: string[], - options: { check?: boolean; timeoutMs?: number } = {}, - ): string => this.guest.exec(args, options); - private guestPowerShell( script: string, options: { check?: boolean; timeoutMs?: number } = {}, diff --git a/scripts/github/real-behavior-proof-policy.mjs b/scripts/github/real-behavior-proof-policy.mjs index 1756554af16..e70571358fb 100644 --- a/scripts/github/real-behavior-proof-policy.mjs +++ b/scripts/github/real-behavior-proof-policy.mjs @@ -289,10 +289,6 @@ function extractMarkdownSections(headingRegex, body = "") { return sections; } -export function extractEvidenceSections(body = "") { - return extractMarkdownSections(/^#{2,6}\s+evidence\b[^\n]*$/im, body); -} - export function hasAuthoredPullRequestSection(heading, body = "") { const headingPattern = new RegExp(`^#{2,6}\\s+${escapeRegex(heading)}\\b[^\\n]*$`, "im"); return !isMissingValue(extractMarkdownSections(headingPattern, body).at(-1) ?? "");