refactor(gateway): drop unused helper methods · openclaw/openclaw@9594300
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -449,10 +449,6 @@ export const testing = {
|
449 | 449 | gatewayCallDeps.loadDeviceAuthToken = |
450 | 450 | deps?.loadDeviceAuthToken ?? defaultGatewayCallDeps.loadDeviceAuthToken; |
451 | 451 | }, |
452 | | -setCreateGatewayClientForTests(createGatewayClient?: typeof defaultCreateGatewayClient): void { |
453 | | -gatewayCallDeps.createGatewayClient = |
454 | | -createGatewayClient ?? defaultGatewayCallDeps.createGatewayClient; |
455 | | -}, |
456 | 452 | resetDepsForTests(): void { |
457 | 453 | gatewayCallDeps.createGatewayClient = defaultGatewayCallDeps.createGatewayClient; |
458 | 454 | gatewayCallDeps.getRuntimeConfig = defaultGatewayCallDeps.getRuntimeConfig; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -121,16 +121,6 @@ export class ExecApprovalManager<TPayload = ExecApprovalRequestPayload> {
|
121 | 121 | return promise; |
122 | 122 | } |
123 | 123 | |
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 | | - |
134 | 124 | resolve(recordId: string, decision: ExecApprovalDecision, resolvedBy?: string | null): boolean { |
135 | 125 | const pending = this.pending.get(recordId); |
136 | 126 | if (!pending) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -361,11 +361,6 @@ export class NodeRegistry {
|
361 | 361 | }); |
362 | 362 | } |
363 | 363 | |
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 | | - |
369 | 364 | updateSurface( |
370 | 365 | nodeId: string, |
371 | 366 | surface: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。