Skip to content

Remove obsolete vulkan_window source files #174087

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flar
Copy link
Contributor

@flar flar commented Aug 20, 2025

While doing some code surveys to see what surface/context files are being used, I discovered that these source files defined classes that were not used anywhere, so deleting them as dead code.

@github-actions github-actions bot added the engine flutter/engine repository. See also e: labels. label Aug 20, 2025
Copy link
Contributor

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

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 correctly removes the obsolete vulkan_window source files and their references in the build system and other headers. The change is clean and follows the stated purpose. I've found one minor issue in the updated documentation example where the hash value for the new example file seems to be outdated. Please see the specific comment for details. Otherwise, the changes look good.

Comment on lines 26 to 30
file_name="engine/src/flutter/display_list/display_list.h"; (printf "blob $(wc -c < "$file_name" | awk '{print $1}')\0"; cat "$file_name") | sha1sum
11a5a03d15ae21bde366e41291a7899eec44e5ae -

git ls-tree -r HEAD engine/src/flutter/vulkan/vulkan_window.h
100644 blob 11a5a03d15ae21bde366e41291a7899eec44e5ae engine/src/flutter/vulkan/vulkan_window.h
git ls-tree -r HEAD engine/src/flutter/display_list/display_list.h
100644 blob 11a5a03d15ae21bde366e41291a7899eec44e5ae engine/src/flutter/display_list/display_list.h
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The hash value 11a5a03d15ae21bde366e41291a7899eec44e5ae appears to be the hash of the deleted file vulkan_window.h. To keep the example in this documentation accurate, please update the hash to match the new file engine/src/flutter/display_list/display_list.h. You can regenerate it using the command on line 26.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

@flar
Copy link
Contributor Author

flar commented Aug 20, 2025

I'm still finding more potentially obsolete code in the vulkan directory. Some of it is referenced outside that directory, but by code that is, itself, also dead. Working my way through the spaghetti...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine flutter/engine repository. See also e: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant