Skip to content

Remove unused private code from the symbol graph loader #1263

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

Merged

Conversation

d-ronnqvist
Copy link
Contributor

Bug/issue #, if applicable:

Summary

This removes a little bit of unused private code in the symbol graph loader.

It's not clear to me if there's some place that's expected to call this code that doesn't.

Dependencies

None.

Testing

Nothing in particular. This isn't a user-facing change.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added Updated tests
  • Ran the ./bin/test script and it succeeded
  • [ ] Updated documentation if necessary n/a

@d-ronnqvist d-ronnqvist added the code cleanup Code cleanup *without* user facing changes label Jul 30, 2025
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@QuietMisdreavus QuietMisdreavus left a comment

Choose a reason for hiding this comment

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

This looks fine to remove. I think loadSymbolGraph(at:) may have been a remnant of a time before the UnifiedSymbolGraph was introduced, but i have no idea why availabilityItem(for:) was there. It seems to have been a way to cache a conversion between the Info.plist's availability items and their equivalent SymbolGraph availability items? It would probably take some amount of Git history delving to know why they were there and how they were previously used, but for now i think it's fine to take them out.

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit 9b57249 into swiftlang:main Aug 11, 2025
2 checks passed
@d-ronnqvist d-ronnqvist deleted the remove-unused-symbolgraph-loader-code branch August 11, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Code cleanup *without* user facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants