Commit 84b0422
trim: drop unused waitForFirstDriveSync + supporting state
\`waitForFirstDriveSync\` had zero callers across the monorepo
(lib, react, svelte, e2e, data-browser, sveltekit-site,
integration tests). The supporting state
(\`_firstDriveSyncPromise\`, \`_firstDriveSyncResolve\`) was
also unused except by \`finishDriveSync\` resolving the latent
promise.
Also a latent flake risk: a caller awaiting this promise on a
session that never completes a drive sync (sustained offline,
or WS dying mid-handshake) would hang indefinitely — the
disconnect path didn't reject. Better that the API not exist
than ship that footgun.
Removed:
- \`waitForFirstDriveSync()\` public method
- \`_firstDriveSyncPromise\` + \`_firstDriveSyncResolve\` private state
- The \`finishDriveSync\` resolve hook (now just clears state)
pnpm typecheck clean, pnpm test 37/37.
Diff: −25 net.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0473802 commit 84b0422
1 file changed
Lines changed: 0 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
1775 | 1771 | | |
1776 | 1772 | | |
1777 | 1773 | | |
| |||
1782 | 1778 | | |
1783 | 1779 | | |
1784 | 1780 | | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | 1781 | | |
1804 | 1782 | | |
1805 | 1783 | | |
| |||
0 commit comments