-
Notifications
You must be signed in to change notification settings - Fork 227
Remove commented out code that does not serve as documentation #3516
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
base: master
Are you sure you want to change the base?
Remove commented out code that does not serve as documentation #3516
Conversation
|
@elsazac WDYT? |
584ca25 to
1dc23a2
Compare
| } | ||
|
|
||
| // /** | ||
| // * Note: This has been left commented out for further |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds like this commented code was kept by intention...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add to the commit message that this code was commented out 16 years ago (sufficient time for investigation). And the comment is still present in Git history.
| /** | ||
| * Markers have not changed | ||
| */ | ||
| private void handleNoMarkerChange() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may we now delete the empty method?
1dc23a2 to
ec919d6
Compare
This commit removes commented out code (dead code) from multiple files across the codebase. The commented code was no longer serving any documentation purpose and only added clutter. Changes include: Bundles: - MarkersChangeListener.java: Removed 150+ lines of commented method implementations (needsUpdate, affectsCurrentState, etc.) and related helper methods. This code was originally commented out on 2009-11-30 in commit b417bee (Bug 292525) with a note "left commented out for further investigation". After approximately 16 years, it is unlikely that further investigation will happen. Also removed the now-empty handleNoMarkerChange() method and its call site. - MarkerContentGenerator.java: Removed commented if statement - SelectionProcessor.java: Removed 27-line commented while loop block in multi-text selection paste handling - CSSDocumentHandlerImpl.java: Removed multiple commented code blocks in startMedia, endMedia, startFontFace, endFontFace methods - HeapStatus.java: Removed commented Kyrsoft view availability check Tests: - UIDialogs.java: Removed commented test implementations in testEditActionSetsDialog and testLoadNotExistingPerspective All removed code was identified as dead code that doesn't serve documentation purposes. Version control history preserves this code if needed for future reference. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
ec919d6 to
79e88af
Compare
This commit removes commented out code (dead code) from multiple files across the codebase. The commented code was no longer serving any documentation purpose and only added clutter.
Changes include:
Bundles:
Tests:
All removed code was identified as dead code that doesn't serve documentation purposes. Version control history preserves this code if needed for future reference.