diff options
| author | David Hill <[email protected]> | 2025-10-31 17:02:53 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2025-10-31 17:02:53 +0000 |
| commit | b022cf0ed60d40e11174e6e312ba50e32ed722e3 (patch) | |
| tree | 3b3c3a69d5da4f4c7bf9bd8829430ca614fbb3a3 /packages/ui/src/components/diff-changes.tsx | |
| parent | a529b0324d462967d4502555374aaac8b588113a (diff) | |
| parent | 76e080b2cbe13b260324461eb2705d18fabfed35 (diff) | |
| download | opencode-b022cf0ed60d40e11174e6e312ba50e32ed722e3.tar.gz opencode-b022cf0ed60d40e11174e6e312ba50e32ed722e3.zip | |
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/ui/src/components/diff-changes.tsx')
| -rw-r--r-- | packages/ui/src/components/diff-changes.tsx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/packages/ui/src/components/diff-changes.tsx b/packages/ui/src/components/diff-changes.tsx index 433c47f39..e6c04f519 100644 --- a/packages/ui/src/components/diff-changes.tsx +++ b/packages/ui/src/components/diff-changes.tsx @@ -16,16 +16,6 @@ export function DiffChanges(props: { diff: FileDiff | FileDiff[]; variant?: "def ) const total = createMemo(() => (additions() ?? 0) + (deletions() ?? 0)) - const countLines = (text: string) => { - if (!text) return 0 - return text.split("\n").length - } - - const totalBeforeLines = createMemo(() => { - if (!Array.isArray(props.diff)) return countLines(props.diff.before || "") - return props.diff.reduce((acc, diff) => acc + countLines(diff.before || ""), 0) - }) - const blockCounts = createMemo(() => { const TOTAL_BLOCKS = 5 |
