Skip to content

detect_conflict() is dead code β€” never calledΒ #97

Description

@Vachhani-Tapan

πŸ› Bug Description

The detect_conflict() function in diff_service.py is defined but never called anywhere in the codebase. The actual conflict detection logic is implemented inline in github_service.py.

πŸ” Steps to Reproduce

  1. Search for any import or call to detect_conflict from diff_service.py across the codebase.
  2. Find zero references.

βœ… Expected Behavior

Either the function should be removed or it should be used for conflict detection.

❌ Actual Behavior

Dead code exists in the codebase adding unnecessary maintenance burden.

🌍 Environment

Field Value
OS Any
VS Code version Any
GitPhone extension version Any
Python version Any

πŸ“‹ Additional Context

File: backend/diff_service.py:33-41
Fix: Remove the unused function or refactor github_service.py to use it.


Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-triageAwaiting admin review

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions