Skip to content

Removing Unused Components #1144

@curran

Description

@curran

Plan for Removing Unused Components

This plan outlines the steps to remove unused components from the codebase. The removal is broken down into phases to ensure a safe and manageable process.

Phase 1: Remove AIEditStatus component

The AIEditStatus component and its associated stylesheet are not used anywhere in the application.

  • Files to delete:
    • src/client/VZSidebar/AIChat/AIEditStatus.tsx
    • src/client/VZSidebar/AIChat/AIEditStatus.scss

Phase 2: Remove generateFilesContext.ts

The contents of src/client/AIAssist/generateFilesContext.ts are completely commented out, making it dead code.

  • File to delete:
    • src/client/AIAssist/generateFilesContext.ts

Phase 3: Remove AIAssistCodeMirrorKeyMap

The AIAssistCodeMirrorKeyMap is not used. It is imported but commented out in getOrCreateEditor.tsx.

  • File to delete:
    • src/client/AIAssist/AIAssistCodeMirrorKeyMap.ts
  • File to modify:
    • src/client/AIAssist/index.ts: Remove the export of AIAssistCodeMirrorKeyMap.

Phase 4: Remove highlightWidgets.ts

The contents of src/client/CodeEditor/InteractiveWidgets/highlightWidgets.ts are completely commented out.

  • File to delete:
    • src/client/CodeEditor/InteractiveWidgets/highlightWidgets.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions