diff options
| author | Kit Langton <[email protected]> | 2026-04-15 22:01:02 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-16 02:01:02 +0000 |
| commit | 34213d444681a8953c5693bd01dd754c4e79a30b (patch) | |
| tree | d8e48758afa5b84afae8cb68410d0213ae5eaa6a /packages/ui | |
| parent | 70aeebf2dfe59009ba7254facaa81b8baf73c3cf (diff) | |
| download | opencode-34213d444681a8953c5693bd01dd754c4e79a30b.tar.gz opencode-34213d444681a8953c5693bd01dd754c4e79a30b.zip | |
fix: delete 9 dead functions with zero callers (#22697)
Diffstat (limited to 'packages/ui')
| -rw-r--r-- | packages/ui/src/components/session-diff.ts | 14 | ||||
| -rw-r--r-- | packages/ui/src/components/timeline-playground.stories.tsx | 4 |
2 files changed, 0 insertions, 18 deletions
diff --git a/packages/ui/src/components/session-diff.ts b/packages/ui/src/components/session-diff.ts index d791c7fc1..a5fbdbc5c 100644 --- a/packages/ui/src/components/session-diff.ts +++ b/packages/ui/src/components/session-diff.ts @@ -25,20 +25,6 @@ export type ViewDiff = { const cache = new Map<string, FileDiffMetadata>() -function empty(file: string, key: string) { - return { - name: file, - type: "change", - hunks: [], - splitLineCount: 0, - unifiedLineCount: 0, - isPartial: true, - deletionLines: [], - additionLines: [], - cacheKey: key, - } satisfies FileDiffMetadata -} - function patch(diff: ReviewDiff) { if (typeof diff.patch === "string") { const [patch] = parsePatch(diff.patch) diff --git a/packages/ui/src/components/timeline-playground.stories.tsx b/packages/ui/src/components/timeline-playground.stories.tsx index 282592ff6..fa3e7ff79 100644 --- a/packages/ui/src/components/timeline-playground.stories.tsx +++ b/packages/ui/src/components/timeline-playground.stories.tsx @@ -555,10 +555,6 @@ function toolPart(sample: (typeof TOOL_SAMPLES)[keyof typeof TOOL_SAMPLES], stat } as ToolPart } -function compactionPart(): CompactionPart { - return { id: uid(), type: "compaction", auto: true } as CompactionPart -} - // --------------------------------------------------------------------------- // CSS Controls definition // --------------------------------------------------------------------------- |
