Skip to content

Commit 49d0bc9

Browse files
committed
refactor(config): remove obsolete source snapshot setter
1 parent 80f788a commit 49d0bc9

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎src/config/runtime-snapshot.ts‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -178,22 +178,6 @@ export function setAppliedRuntimeConfigSnapshot(
178178
runtimeConfigAppliedHash = hashRuntimeConfigValue(sourceConfig);
179179
}
180180

181-
/** Publish a newer canonical source without changing the active runtime object. */
182-
export function setRuntimeConfigSourceSnapshotIfCurrent(params: {
183-
expectedRevision: number;
184-
sourceConfig: OpenClawConfig;
185-
}): boolean {
186-
if (
187-
!runtimeConfigSnapshot ||
188-
!runtimeConfigSnapshotMetadata ||
189-
runtimeConfigSnapshotMetadata.revision !== params.expectedRevision
190-
) {
191-
return false;
192-
}
193-
setRuntimeConfigSnapshot(runtimeConfigSnapshot, params.sourceConfig);
194-
return true;
195-
}
196-
197181
export function resetConfigRuntimeState(): void {
198182
runtimeConfigSnapshot = null;
199183
runtimeConfigSourceSnapshot = null;

0 commit comments

Comments
 (0)