Skip to content

Remove unused export: getCopilotDir() in lockfile.js #91

Description

@sametcelikbicak

Summary

The function getCopilotDir() in src/utils/lockfile.js is exported but never imported by any production file. It only appears in the test file.

How to Fix

  1. Remove the getCopilotDir export from src/utils/lockfile.js (the function definition and the export keyword)
  2. Remove the test for it in src/utils/lockfile.test.js (around line 88-89)
  3. Run npm test to verify all tests pass
  4. Run npm run lint to verify no syntax errors

Why This Matters

Keeping dead code in the codebase increases maintenance burden and confuses new contributors trying to understand the project.

Difficulty

Easy — no new logic needed, just deletion.

Files

  • src/utils/lockfile.js (line 34-36)
  • src/utils/lockfile.test.js (around line 88-89)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions