Skip to content

[web_ui] Clean up dead unreferenced declarations - #191164

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
kevmoo:cleanup-web-ui-dead-code
Aug 18, 2026
Merged

auto-submit[bot] merged 4 commits into
flutter:masterfrom
kevmoo:cleanup-web-ui-dead-code

Conversation

@kevmoo

@kevmoo kevmoo commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Remove dead declarations and unused code identified during reachability audit:

  • Delete svg.dart (legacy HTML debris)
  • Delete onscreen_logging.dart (dead debug helper)
  • Delete image_decoding_manager.dart and its isolated test
  • Delete unused conversion helpers and CanvasKitError in canvaskit_api.dart & util.dart
  • Delete unused DOM wrappers (DomWebSocket, DomMutationObserver, DomFileReader, etc.) and unused HTTP POST helpers in dom.dart
  • Clean up orphaned export directives in engine.dart

Remove dead declarations and unused code identified during reachability audit:
- Delete `svg.dart` (legacy HTML debris)
- Delete `onscreen_logging.dart` (dead debug helper)
- Delete `image_decoding_manager.dart` and its isolated test
- Delete unused conversion helpers and CanvasKitError in `canvaskit_api.dart` & `util.dart`
- Delete unused DOM wrappers (DomWebSocket, DomMutationObserver, DomFileReader, etc.) and unused HTTP POST helpers in `dom.dart`
- Clean up orphaned export directives in `engine.dart`
@github-actions github-actions Bot added engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team labels Aug 16, 2026
@kevmoo
kevmoo requested a review from harryterkelsen August 16, 2026 04:43
@kevmoo
kevmoo marked this pull request as ready for review August 16, 2026 04:43

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request cleans up the Flutter Web Engine codebase by removing several unused files, helper functions, and JS interop bindings. Specifically, it deletes the image decoding manager, onscreen logging, and SVG-related utilities, along with their associated tests and exports. It also removes obsolete APIs and DOM bindings from canvaskit_api.dart, util.dart, and dom.dart. I have no feedback to provide as there are no review comments to evaluate.

@kevmoo
kevmoo requested a review from mdebbar August 16, 2026 04:46
@kevmoo kevmoo added the CICD Run CI/CD label Aug 16, 2026
harryterkelsen
harryterkelsen previously approved these changes Aug 17, 2026

@harryterkelsen harryterkelsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 17, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 17, 2026
@auto-submit

auto-submit Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/191164, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label.

@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 18, 2026
@kevmoo

kevmoo commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

@harryterkelsen - i think I need another approval from you!

@auto-submit
auto-submit Bot added this pull request to the merge queue Aug 18, 2026
Merged via the queue into flutter:master with commit a1185fe Aug 18, 2026
22 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 18, 2026
@kevmoo
kevmoo deleted the cleanup-web-ui-dead-code branch August 18, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels. platform-web Web applications specifically team-web Owned by Web platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants