From e8bf5595bfc019cab05eea1dfcdec0de7b2375a5 Mon Sep 17 00:00:00 2001 From: Muse Sweep Date: Mon, 26 Oct 2026 12:12:57 -0500 Subject: [PATCH] refactor(id-web): drop dead leftmostGroup/leftmostCursorLine declarations Ports the one cleanup commit PR #922 lacked from superseded PR #824 (6a3b0935): both declarations in createCursorDecorations are unused. Part of the #922/#824 consolidation tracked in #952. Verified: vitest cursor-utils 78/78, tsc --noEmit clean. --- pkgs/id/web/src/cursors.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/id/web/src/cursors.ts b/pkgs/id/web/src/cursors.ts index 631356a799..380ce2941f 100644 --- a/pkgs/id/web/src/cursors.ts +++ b/pkgs/id/web/src/cursors.ts @@ -719,10 +719,6 @@ function createCursorDecorations( // Create merged bar for all remote cursors const leftmostPos = Math.min(...groupsForBar.map((g) => g.position)); - // Find the leftmost group (we'll attach the bar to its cursor line) - const leftmostGroup = groupsForBar.find((g) => g.position === leftmostPos); - const leftmostCursorLine: HTMLElement | null = null; - // Create a cluster-wide key that includes ALL client IDs, positions, opacities, and connection state in the cluster // This ensures widgets are recreated when cluster membership, positions, or dynamic states change const clusterKey = groupsForBar