refactor(agents): remove unused helper exports · openclaw/openclaw@8415887
vincentkoc
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -68,16 +68,6 @@ export async function getOrLoadBootstrapFiles(params: {
|
68 | 68 | return files; |
69 | 69 | } |
70 | 70 | |
71 | | -/** Test helper exposing the bounded snapshot cache size. */ |
72 | | -export function getBootstrapSnapshotCacheSizeForTest(): number { |
73 | | -return cache.size; |
74 | | -} |
75 | | - |
76 | | -/** Test helper for asserting one session snapshot is cached. */ |
77 | | -export function hasBootstrapSnapshotForTest(sessionKey: string): boolean { |
78 | | -return cache.has(sessionKey); |
79 | | -} |
80 | | - |
81 | 71 | /** Drop one cached bootstrap snapshot. */ |
82 | 72 | export function clearBootstrapSnapshot(sessionKey: string): void { |
83 | 73 | cache.delete(sessionKey); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -47,15 +47,6 @@ export function listProviderEnvAuthLookupKeys(params: {
|
47 | 47 | ).toSorted((a, b) => a.localeCompare(b)); |
48 | 48 | } |
49 | 49 | |
50 | | -/** Resolves provider auth lookup maps and returns their sorted provider keys. */ |
51 | | -export function resolveProviderEnvAuthLookupKeys(params?: ProviderEnvVarLookupParams): string[] { |
52 | | -const lookupMaps = resolveProviderEnvAuthLookupMaps(params); |
53 | | -return listProviderEnvAuthLookupKeys({ |
54 | | -envCandidateMap: lookupMaps.envCandidateMap, |
55 | | -authEvidenceMap: lookupMaps.authEvidenceMap, |
56 | | -}); |
57 | | -} |
58 | | - |
59 | 50 | /** Lists known provider API-key env var names for redaction and marker matching. */ |
60 | 51 | export function listKnownProviderEnvApiKeyNames(): string[] { |
61 | 52 | return listKnownProviderAuthEnvVarNames(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。