diff --git a/desktop/plugins/public/ui-debugger/index.tsx b/desktop/plugins/public/ui-debugger/index.tsx index 34900edfa..72f51a18f 100644 --- a/desktop/plugins/public/ui-debugger/index.tsx +++ b/desktop/plugins/public/ui-debugger/index.tsx @@ -138,24 +138,6 @@ export function plugin(client: PluginClient) { expandedNodes: createState>(new Set()), }; - client.onMessage('coordinateUpdate', (event) => { - liveClientData = produce(liveClientData, (draft) => { - const node = draft.nodes.get(event.nodeId); - if (!node) { - console.warn(`Coordinate update for non existing node `, event); - } else { - node.bounds.x = event.coordinate.x; - node.bounds.y = event.coordinate.y; - } - }); - - if (uiState.isPaused.get()) { - return; - } - - nodes.set(liveClientData.nodes); - }); - const setPlayPause = (isPaused: boolean) => { uiState.isPaused.set(isPaused); if (!isPaused) { diff --git a/desktop/plugins/public/ui-debugger/types.tsx b/desktop/plugins/public/ui-debugger/types.tsx index 89d504ac6..556fcfe69 100644 --- a/desktop/plugins/public/ui-debugger/types.tsx +++ b/desktop/plugins/public/ui-debugger/types.tsx @@ -10,18 +10,11 @@ export type Events = { init: InitEvent; subtreeUpdate: SubtreeUpdateEvent; - coordinateUpdate: CoordinateUpdateEvent; perfStats: PerfStatsEvent; performanceStats: PerformanceStatsEvent; metadataUpdate: UpdateMetadataEvent; }; -export type CoordinateUpdateEvent = { - observerType: String; - nodeId: Id; - coordinate: Coordinate; -}; - export type SubtreeUpdateEvent = { txId: number; rootId: Id;