From e5e71cc5f83dc08e1c667aa0f71941b14d94e946 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 26 Nov 2025 11:00:21 +0100 Subject: [PATCH] cleanup --- frontend/src/desktop/DesktopWorkspace.tsx | 13 ------------- frontend/src/desktop/useDocumentDrag.ts | 2 -- 2 files changed, 15 deletions(-) diff --git a/frontend/src/desktop/DesktopWorkspace.tsx b/frontend/src/desktop/DesktopWorkspace.tsx index 15bce1a..e3c952f 100644 --- a/frontend/src/desktop/DesktopWorkspace.tsx +++ b/frontend/src/desktop/DesktopWorkspace.tsx @@ -791,7 +791,6 @@ const DesktopWorkspace: React.FC = ({ onPromoteSelection: handlePromoteSelection, selectedDocumentIds, onClearSelection: clearSelection, - onDocumentClick: passThroughProps.onDocumentClick, onSelect: (descriptorOrDescriptors: any, event: any) => { const descriptors = Array.isArray(descriptorOrDescriptors) ? descriptorOrDescriptors @@ -845,7 +844,6 @@ function DesktopWorkspaceView({ overlayOriginRect, overlayOriginTransform, overlayDocument, - onDocumentClick, onPromoteSelection, selectedDocumentIds, onClearSelection, @@ -872,16 +870,6 @@ function DesktopWorkspaceView({ [documentLookup, onDocumentActivate], ); - const handleDeskDocumentClick = useCallback( - (docId: Identifier, event: any) => { - const doc = documentLookup.get(String(docId)); - if (doc && onDocumentClick) { - onDocumentClick(doc, event); - } - }, - [documentLookup, onDocumentClick], - ); - const { handlePointerDown, handlePointerMove, handlePointerUp, handlePointerCancel } = useDocumentDrag({ engine, @@ -917,7 +905,6 @@ function DesktopWorkspaceView({ handlePointerMove, handlePointerUp, handlePointerCancel, - onDocumentClick: handleDeskDocumentClick, onPromoteSelection, onDocumentActivate: handleDeskDocumentActivate, selectedDocumentIds, diff --git a/frontend/src/desktop/useDocumentDrag.ts b/frontend/src/desktop/useDocumentDrag.ts index 40a4e4a..510fd31 100644 --- a/frontend/src/desktop/useDocumentDrag.ts +++ b/frontend/src/desktop/useDocumentDrag.ts @@ -44,8 +44,6 @@ interface DragTransform { scale?: number; } - - type EnsureDocumentSizeFn = (doc: Document | null) => DocumentSizeInfo | null; type ResolveBaseMetricsFn = (