Skip to content
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

IOS: Remove unused member variable from SharedContentMap and UIDSys #12097

Conversation

Dentomologist
Copy link
Contributor

Remove unused member variable m_fs_core from SharedContentMap and UIDSys to resolve unused-private-field warnings on Android.

Resolve unused-private-field warnings on Android.
@BhaaLseN
Copy link
Member

Just checking, since I think this had to be done a while back because it would be free'd while m_fs was still using it - is this ok now?

@Dentomologist
Copy link
Contributor Author

As far as I can tell, yes. Each instance of UIDSys or SharedContentMap is a local variable and nothing in those functions is freeing or invalidating the FSCore that initialized it.

Even if that did happen, I don't believe having a reference to an invalid FSCore would change whether it was safe to use the shared_ptr stored in m_fs.

@AdmiralCurtiss
Copy link
Contributor

Yeah this should not change any behavior, it's just a raw reference.

@AdmiralCurtiss AdmiralCurtiss merged commit 799ce0d into dolphin-emu:master Aug 26, 2023
11 checks passed
@Dentomologist Dentomologist deleted the ios_remove_unused_member_variables branch August 26, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants