Skip to content
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

Remove a few thousand lines of commented and obsolete code #2200

Merged
merged 1 commit into from
Mar 30, 2025
Merged

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Mar 28, 2025

Mostly in tests

@elharo elharo requested a review from khmarbaise March 28, 2025 12:52
@elharo elharo changed the title Remove a few tbousand lines of commented and obslete code Remove a few thousand lines of commented and obslete code Mar 28, 2025
@gnodet
Copy link
Contributor

gnodet commented Mar 28, 2025

Same comment as in #2199 , I'd rather only fixing actual bugs in this code... I think it's wasted time, but...

@elharo elharo marked this pull request as ready for review March 28, 2025 13:21
@elharo elharo changed the title Remove a few thousand lines of commented and obslete code Remove a few thousand lines of commented and obsolete code Mar 28, 2025
@elharo
Copy link
Contributor Author

elharo commented Mar 30, 2025

S

Same comment as in #2199 , I'd rather only fixing actual bugs in this code... I think it's wasted time, but...

ans same response. Either delete it or maintain it. There is no third option.

@desruisseaux
Copy link
Contributor

I also think that removing unused codes is helpful. When I'm considering to make a change, I sometime do a search for some keywords in a large code base for having a sense of whether it is used a lot. Dead codes or commented-out codes create false positives which make the analysis more tedious.

Related to above comment but not directly related to this PR, reducing the visibility (i.e. not public unless we really intend to allow the usage of a class or method outside its package) is also helpful.

@elharo elharo requested a review from desruisseaux March 30, 2025 11:37
@gnodet
Copy link
Contributor

gnodet commented Mar 30, 2025

I also think that removing unused codes is helpful. When I'm considering to make a change, I sometime do a search for some keywords in a large code base for having a sense of whether it is used a lot. Dead codes or commented-out codes create false positives which make the analysis more tedious.

I do agree. Though I would rather focus on trying to kill the (not completely dead yet) code asap, rather than spending too much effort on it.

@elharo elharo merged commit 11274d1 into master Mar 30, 2025
20 checks passed
@elharo elharo deleted the comment branch March 30, 2025 23:08
@github-actions github-actions bot added this to the 4.0.0-rc-4 milestone Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants