Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

chore(mobile): 删除未使用的 useRemoteScheduleEventVersion (#5474)

lengjingxud56805dc88f9
diff --git a/apps/mobile/src/scheduler/remoteScheduleEvents.ts b/apps/mobile/src/scheduler/remoteScheduleEvents.ts
index 8c81a3dc92..8f26d3ecf1 100644
--- a/apps/mobile/src/scheduler/remoteScheduleEvents.ts
+++ b/apps/mobile/src/scheduler/remoteScheduleEvents.ts
@@ -157,10 +157,3 @@ export function useRemoteScheduleEventSnapshot(deviceId: string): RemoteSchedule
() => remoteScheduleEventStore.getSnapshot(deviceId),
);
}
-
-export function useRemoteScheduleEventVersion(deviceId: string): number {
- return useSyncExternalStore(
- remoteScheduleEventStore.subscribe,
- () => remoteScheduleEventStore.getVersion(deviceId),
- );
-}