Skip to content

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Nov 7, 2025

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 that were left for "further investigation"
  • 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.

@vogella
Copy link
Contributor Author

vogella commented Nov 7, 2025

@elsazac WDYT?

@vogella vogella marked this pull request as draft November 7, 2025 17:56
@vogella vogella force-pushed the claude/identify-c-011CUrofTgRLK6VmDmBMtofb branch from 584ca25 to 1dc23a2 Compare November 7, 2025 18:20
@elsazac
Copy link
Member

elsazac commented Nov 7, 2025

@elsazac WDYT?

@vogella , yes this looks good to me.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

Test Results

 3 018 files  ±0   3 018 suites  ±0   2h 19m 44s ⏱️ - 3m 8s
 8 234 tests ±0   7 985 ✅ +1  249 💤 ±0  0 ❌  - 1 
23 622 runs  ±0  22 828 ✅ +1  794 💤 ±0  0 ❌  - 1 

Results for commit 79e88af. ± Comparison against base commit 1a43fc1.

♻️ This comment has been updated with latest results.

}

// /**
// * Note: This has been left commented out for further
Copy link
Member

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...

Copy link
Contributor Author

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() {
Copy link
Member

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?

@vogella vogella force-pushed the claude/identify-c-011CUrofTgRLK6VmDmBMtofb branch from 1dc23a2 to ec919d6 Compare November 10, 2025 18:25
@vogella vogella marked this pull request as ready for review November 11, 2025 06:20
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>
@vogella vogella force-pushed the claude/identify-c-011CUrofTgRLK6VmDmBMtofb branch from ec919d6 to 79e88af Compare November 11, 2025 08:39
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.

3 participants