Skip to content

Remove dead code from src/codegen directory #660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Remove dead code from src/codegen directory

This PR removes unused functions and classes from the src/codegen directory using a codemod. The codemod preserves tests, API endpoints, and other essential code.

The codemod identified and removed 55 unused functions and classes across various files in the codebase.

Implementation Details

  • Created a codemod that analyzes the codebase to identify unused code
  • Preserved test files, API endpoints, and other essential code
  • Added detailed logging to track removed functions and classes
  • Fixed lint issues in modified files

Changes

  • Removed 55 unused functions and classes from 42 files
  • Fixed lint issues in 3 files:
    • Removed unused imports in src/codegen/extensions/langchain/__init__.py
    • Fixed type reference in src/codegen/sdk/core/parser.py
    • Updated __all__ list in src/codegen/sdk/utils.py

Link to Devin run: https://app.devin.ai/sessions/a49eac87da644fa9ac1144fe130b847e
Requested by: tramteke

devin-ai-integration bot and others added 3 commits February 26, 2025 01:01
Co-Authored-By: jay@codegen.com <jay@codegen.com>
Co-Authored-By: jay@codegen.com <jay@codegen.com>
Co-Authored-By: jay@codegen.com <jay@codegen.com>
@devin-ai-integration devin-ai-integration bot requested review from codegen-team and a team as code owners February 26, 2025 01:06
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 5 commits February 26, 2025 01:09
Co-Authored-By: jay@codegen.com <jay@codegen.com>
Co-Authored-By: jay@codegen.com <jay@codegen.com>
Co-Authored-By: jay@codegen.com <jay@codegen.com>
Co-Authored-By: jay@codegen.com <jay@codegen.com>
Copy link
Contributor Author

Closing due to inactivity.

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.

1 participant