Skip to content

Commit 9594300

Browse files
committed
refactor(gateway): drop unused helper methods
1 parent c2c19a8 commit 9594300

3 files changed

Lines changed: 0 additions & 19 deletions

File tree

src/gateway/call.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,6 @@ export const testing = {
449449
gatewayCallDeps.loadDeviceAuthToken =
450450
deps?.loadDeviceAuthToken ?? defaultGatewayCallDeps.loadDeviceAuthToken;
451451
},
452-
setCreateGatewayClientForTests(createGatewayClient?: typeof defaultCreateGatewayClient): void {
453-
gatewayCallDeps.createGatewayClient =
454-
createGatewayClient ?? defaultGatewayCallDeps.createGatewayClient;
455-
},
456452
resetDepsForTests(): void {
457453
gatewayCallDeps.createGatewayClient = defaultGatewayCallDeps.createGatewayClient;
458454
gatewayCallDeps.getRuntimeConfig = defaultGatewayCallDeps.getRuntimeConfig;

src/gateway/exec-approval-manager.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ export class ExecApprovalManager<TPayload = ExecApprovalRequestPayload> {
121121
return promise;
122122
}
123123

124-
/**
125-
* @deprecated Use register() instead for explicit separation of registration and waiting.
126-
*/
127-
async waitForDecision(
128-
record: ExecApprovalRecord<TPayload>,
129-
timeoutMs: number,
130-
): Promise<ExecApprovalDecision | null> {
131-
return this.register(record, timeoutMs);
132-
}
133-
134124
resolve(recordId: string, decision: ExecApprovalDecision, resolvedBy?: string | null): boolean {
135125
const pending = this.pending.get(recordId);
136126
if (!pending) {

src/gateway/node-registry.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,6 @@ export class NodeRegistry {
361361
});
362362
}
363363

364-
/** Update command list while keeping it within the node's declared command surface. */
365-
updateCommands(nodeId: string, commands: readonly string[]): NodeSession | null {
366-
return this.updateSurface(nodeId, { commands });
367-
}
368-
369364
updateSurface(
370365
nodeId: string,
371366
surface: {

0 commit comments

Comments
 (0)