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

Remove unnecessary Core private headers #6439

Merged
merged 6 commits into from
Sep 17, 2020
Merged

Conversation

paulb777
Copy link
Member

Fix #3777

#no-changelog

@paulb777 paulb777 marked this pull request as draft September 10, 2020 22:56
@paulb777 paulb777 added this to the Firebase 7 milestone Sep 10, 2020
@paulb777 paulb777 marked this pull request as ready for review September 11, 2020 00:15
@@ -110,7 +104,7 @@ extern NSString *const FIRAuthStateDidChangeInternalNotificationUIDKey;
* FIRApp notification listener.
*/
+ (NSError *)errorForSubspecConfigurationFailureWithDomain:(NSString *)domain
Copy link
Member

Choose a reason for hiding this comment

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

This method is only used once in FDL and once in RC - think it's worth keeping it in Core for a ~5 line implementation? Diff wise it'd probably be less LOC to just inline the implementation at both call sites, and cleans up Core.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Comment on lines 188 to 191
error = [self errorForSubspecConfigurationFailureWithDomain:kFirebaseDurableDeepLinkErrorDomain
errorCode:FIRErrorCodeDurableDeepLinkFailed
service:@"DynamicLinks"
reason:errorDescription];
Copy link
Member

Choose a reason for hiding this comment

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

Since this call is only used once and it's the same number of lines, I think this could even be inlined.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. Thanks!

@paulb777 paulb777 merged commit 0a87c31 into firebase7-main Sep 17, 2020
@paulb777 paulb777 deleted the pb-rm-errors7 branch September 17, 2020 22:31
@firebase firebase locked and limited conversation to collaborators Oct 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants