Remove unused code, dead exports, and unneeded dependencies#11
Remove unused code, dead exports, and unneeded dependencies#11akemmanuel merged 1 commit intomasterfrom
Conversation
- Remove unused deps: amadeus, @radix-ui/react-slot - Delete unused files: OPENGUI.png, white.txt, whitespaces.txt - Delete unused UI components: collapsible.tsx, toggle.tsx, textarea.tsx - Remove legacy useOpenCode() hook, OpenCodeContext, and provider wiring - Remove unused setVariant from ActionsContextValue - Replace deprecated projectName wrapper with direct getProjectName calls - Remove redundant export default from App.tsx - Narrow exports in shadcn components (card, sheet, dialog, sidebar, badge, button) - Remove dead function definitions for unexported shadcn components - Clean up unused imports in ConnectionPanel and sidebar
Code Review SummaryConfidence Score: 4/5The PR is well-executed with proper cleanup. One minor issue detected. Issues Found1. Minor Behavioral Difference in
|

Summary
Comprehensive cleanup of unused code, dead exports, and unnecessary dependencies across the codebase. Typecheck and lint pass with zero errors/warnings.
Deleted files
OPENGUI.png,white.txt,whitespaces.txt- unrelated/unused root filessrc/components/ui/collapsible.tsx,toggle.tsx,textarea.tsx- never-imported UI componentsRemoved dependencies
amadeus- never imported in src/@radix-ui/react-slot- superseded by the unifiedradix-uipackageDead code removed
useOpenCode()hook,OpenCodeContext,OpenCodeContextValueinterface, and combined value memo in the provider - all components use the split hooks insteadsetVariantfromActionsContextValue- never called by any consumerexport default Appfrom App.tsxprojectNamewrapper in AppSidebar.tsx (6 call sites migrated to directgetProjectName())disconnectdestructuring andhasAnyConnectionimport in ConnectionPanel.tsxExports narrowed
SessionContextValue,ModelContextValue,ConnectionContextValue,ActionsContextValue) no longer exportedcycleVariantSelectionno longer exported from use-variant.tsQueueItem,MergeDialogProps,SESSION_COLORSno longer exportedProviderIconProps,resolveProviderIconno longer exportedDead shadcn/UI components and exports removed
CardDescription,CardFooterSheetTrigger,SheetClose,SheetFooterDialogClose,DialogPortal,DialogOverlayInput,Separator,SkeletonimportsbadgeVariantsexportbuttonVariantsexportNet result: -552 lines deleted, 23 files changed