fix(gui): clean up unused imports and variables in git components#311
Merged
fix(gui): clean up unused imports and variables in git components#311
Conversation
- GitPanel.tsx: Remove unused LFSStatus import, comment out unused Flex imports, prefix unused worktree callback parameter - DiffView.tsx: Prefix unused variables with underscore (showLineNumbers, enableWordDiff, getLineBackground, getLineColor, toggleHunkCollapse, generateHunkPatch, computeWordDiff, renderWordDiffContent, highlightedLine/setHighlightedLine) - BlameView.tsx: Remove unused tokens import, prefix unused groupedLines and idx parameter - BranchComparison.tsx: Remove unused onMount import, prefix unused expandedSections, toggleSection, and filteredBranches with underscore - MergeEditor.tsx: Prefix unused variables (calculateLineMapping, showDiffDecorations, hasBaseContent, resultLines, resolvedStartLine, navigateToNextUnresolved, acceptBothReverse) - StashPanel.tsx: Remove unused tokens import All prefixed variables are prepared for future features and kept for documentation purposes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR cleans up unused imports and variables in the git components (GitPanel.tsx, DiffView.tsx, BlameView.tsx, BranchComparison.tsx, MergeEditor.tsx, StashPanel.tsx) as part of the AGENT4 analysis tasks.
Changes
GitPanel.tsx
LFSStatustype import from GitLFSManagerBox, Flex, VStack, HStackimports from design-systemworktreecallback parameter with underscoreDiffView.tsx
highlightedLine/setHighlightedLineshowLineNumbers,enableWordDiffgetLineBackground,getLineColortoggleHunkCollapse,generateHunkPatchcomputeWordDiff,renderWordDiffContentBlameView.tsx
tokensimportgroupedLinesfunction andidxparameter with underscoreBranchComparison.tsx
onMountimportexpandedSections,toggleSection,filteredBrancheswith underscoreMergeEditor.tsx
calculateLineMappingshowDiffDecorations,setShowDiffDecorations,hasBaseContentresultLines,resolvedStartLinenavigateToNextUnresolved,acceptBothReverseStashPanel.tsx
tokensimportNotes
All prefixed variables are prepared for future features and retained for documentation purposes. Using the underscore prefix is the TypeScript convention for marking intentionally unused code.