Skip to content

Commit da72bf9

Browse files
authored
Remove GIDDisconnectCompletion (#267)
1 parent a140927 commit da72bf9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

GoogleSignIn/Sources/GIDSignIn_Private.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
3333
/// was unsuccessful.
3434
typedef void (^GIDUserAuthCompletion)(GIDUserAuth *_Nullable userAuth, NSError *_Nullable error);
3535

36+
/// Represents a completion block that takes an error if the operation was unsuccessful.
37+
typedef void (^GIDDisconnectCompletion)(NSError *_Nullable error);
38+
3639
// Private |GIDSignIn| methods that are used internally in this SDK and other Google SDKs.
3740
@interface GIDSignIn ()
3841

GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ typedef NS_ERROR_ENUM(kGIDSignInErrorDomain, GIDSignInErrorCode) {
5151
kGIDSignInErrorCodeMismatchWithCurrentUser = -9,
5252
};
5353

54-
/// Represents a completion block that takes an error if the operation was unsuccessful.
55-
typedef void (^GIDDisconnectCompletion)(NSError *_Nullable error);
56-
5754
/// This class signs the user in with Google.
5855
///
5956
/// For reference, please see "Google Sign-In for iOS" at
@@ -102,9 +99,9 @@ typedef void (^GIDDisconnectCompletion)(NSError *_Nullable error);
10299
/// Disconnects the current user from the app and revokes previous authentication. If the operation
103100
/// succeeds, the OAuth 2.0 token is also removed from keychain.
104101
///
105-
/// @param completion The optional `GIDDisconnectCompletion` block that is called on completion.
102+
/// @param completion The optional block that is called on completion.
106103
/// This block will be called asynchronously on the main queue.
107-
- (void)disconnectWithCompletion:(nullable GIDDisconnectCompletion)completion;
104+
- (void)disconnectWithCompletion:(nullable void (^)(NSError *_Nullable error))completion;
108105

109106
#if TARGET_OS_IOS || TARGET_OS_MACCATALYST
110107
/// Starts an interactive sign-in flow on iOS.

0 commit comments

Comments
 (0)