Skip to content

Remove unused code from project.ts and deprecated fileRepository chat wrappers#305

Merged
Stasshe merged 2 commits intomainfrom
copilot/remove-unused-code-and-files
Feb 1, 2026
Merged

Remove unused code from project.ts and deprecated fileRepository chat wrappers#305
Stasshe merged 2 commits intomainfrom
copilot/remove-unused-code-and-files

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 1, 2026

Cleaned up project.ts to retain only functions consumed by page.tsx. Removed deprecated fileRepository chat methods following completed migration to chatStorageAdapter.

Changes

project.ts (493 → 316 lines)

Removed unused exports from useProject hook:

  • saveFile, createFile, deleteFile, ensureParentFolders - file operations
  • syncTerminalFileOperation - terminal sync
  • clearAIReview - AI review management
  • loading - internal state, never consumed

Kept: currentProject, projectFiles, loadProject, createProject, refreshProjectFiles

fileRepository.ts (78 lines removed)

Removed 8 deprecated chat wrapper methods that delegated to chatStorageAdapter:

  • createChatSpace, saveChatSpace, getChatSpaces, deleteChatSpace
  • addMessageToChatSpace, updateChatSpaceMessage, updateChatSpaceSelectedFiles, renameChatSpace

Updated internal calls to use chatCreateChatSpace directly instead of this.createChatSpace.

Cleaned up unused imports: ChatSpace/ChatSpaceMessage types and 6 chat adapter functions.

Migration Complete

All chat space operations now call chatStorageAdapter directly. No references to removed methods exist in codebase.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…fileRepository

Co-authored-by: Stasshe <133995608+Stasshe@users.noreply.github.com>
@Stasshe Stasshe temporarily deployed to copilot/remove-unused-code-and-files - pyxis-code PR #305 February 1, 2026 07:04 — with Render Destroyed
Copilot AI changed the title [WIP] Remove unused code from project.ts and filerepository Remove unused code from project.ts and deprecated fileRepository chat wrappers Feb 1, 2026
Copilot AI requested a review from Stasshe February 1, 2026 07:05
@Stasshe Stasshe marked this pull request as ready for review February 1, 2026 07:06
@Stasshe Stasshe merged commit ea2efe6 into main Feb 1, 2026
@Stasshe Stasshe deleted the copilot/remove-unused-code-and-files branch February 1, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants