瀏覽代碼

+optionsWithCallback:extraParams: is no longer used.

Peter Andrews 4 年之前
父節點
當前提交
a2b8492696
共有 2 個文件被更改,包括 0 次插入16 次删除
  1. 0 4
      GoogleSignIn/Sources/GIDSignInInternalOptions.h
  2. 0 12
      GoogleSignIn/Sources/GIDSignInInternalOptions.m

+ 0 - 4
GoogleSignIn/Sources/GIDSignInInternalOptions.h

@@ -56,10 +56,6 @@ NS_ASSUME_NONNULL_BEGIN
 /// Creates the options to sign in silently.
 + (instancetype)silentOptionsWithCallback:(GIDSignInCallback)callback;
 
-/// Creates the options to sign in with extra parameters.
-+ (instancetype)optionsWithCallback:(GIDSignInCallback)callback
-                        extraParams:(NSDictionary *)extraParams;
-
 /// Creates options with the same values as the receiver, except for the "extra parameters", and
 /// continuation flag, which are replaced by the arguments passed to this method.
 - (instancetype)optionsWithExtraParameters:(NSDictionary *)extraParams

+ 0 - 12
GoogleSignIn/Sources/GIDSignInInternalOptions.m

@@ -48,18 +48,6 @@ NS_ASSUME_NONNULL_BEGIN
   return options;
 }
 
-+ (instancetype)optionsWithCallback:(GIDSignInCallback)callback
-                        extraParams:(NSDictionary *)extraParams {
-  GIDSignInInternalOptions *options = [self defaultOptionsWithConfiguration:nil
-                                                   presentingViewController:nil
-                                                                  loginHint:nil
-                                                                   callback:callback];
-  if (options) {
-    options->_extraParams = [extraParams copy];
-  }
-  return options;
-}
-
 - (instancetype)optionsWithExtraParameters:(NSDictionary *)extraParams
                            forContinuation:(BOOL)continuation {
   GIDSignInInternalOptions *options = [[GIDSignInInternalOptions alloc] init];