aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2017-09-17 22:12:53 -0700
committerGravatar GitHub <noreply@github.com>2017-09-17 22:12:53 -0700
commita34d091971d05ef8e2625074157eb9ff6dda3cbd (patch)
treeb13b49aa983c1c6ff6696c2524e74958ec8a8f21 /Firebase
parentb79950072d349d2b3665b05c71cf5cb9953ef6ed (diff)
Removes unused Fir_authPhoneNumber (#277)
Removes references of unused Fir_authPhoneNumber and accompanying class.
Diffstat (limited to 'Firebase')
-rw-r--r--Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m5
-rw-r--r--Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.h36
-rw-r--r--Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.m36
3 files changed, 0 insertions, 77 deletions
diff --git a/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m b/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m
index 5d22fc4..0a59d52 100644
--- a/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m
+++ b/Firebase/Auth/Source/AuthProviders/Phone/FIRPhoneAuthProvider.m
@@ -20,7 +20,6 @@
#import "FIRLogger.h"
#import "FIRPhoneAuthCredential_Internal.h"
-#import "NSString+FIRAuth.h"
#import "FIRApp.h"
#import "FIRAuthAPNSToken.h"
#import "FIRAuthAPNSTokenManager.h"
@@ -194,8 +193,6 @@ NSString *const kReCAPTCHAURLStringFormat = @"https://%@/__/auth/handler?%@";
callBackOnMainThread(nil, error);
return;
}
- // Associate the phone number with the verification ID.
- response.verificationID.fir_authPhoneNumber = phoneNumber;
callBackOnMainThread(response.verificationID, nil);
}];
}];
@@ -381,8 +378,6 @@ NSString *const kReCAPTCHAURLStringFormat = @"https://%@/__/auth/handler?%@";
callback(nil, error);
return;
}
- // Associate the phone number with the verification ID.
- response.verificationID.fir_authPhoneNumber = phoneNumber;
callback(response.verificationID, nil);
}];
}];
diff --git a/Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.h b/Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.h
deleted file mode 100644
index ba123fa..0000000
--- a/Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2017 Google
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#import <Foundation/Foundation.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/** @category NSString(FIRAuth)
- @brief A FIRAuth category for extending the functionality of NSString for specific Firebase Auth
- use cases.
- */
-@interface NSString (FIRAuth)
-
-/** @property fir_authPhoneNumber
- @brief A phone number associated with the verification ID (NSString instance).
- @remarks Allows an instance on NSString to be associated with a phone number in order to link
- phone number with the verificationID returned from verifyPhoneNumber:completion:
- */
-@property(nonatomic, strong) NSString *fir_authPhoneNumber;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.m b/Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.m
deleted file mode 100644
index 87f3b1c..0000000
--- a/Firebase/Auth/Source/AuthProviders/Phone/NSString+FIRAuth.m
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2017 Google
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#import "NSString+FIRAuth.h"
-
-#import <objc/runtime.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-@implementation NSString (FIRAuth)
-
-- (void)setFir_authPhoneNumber:(NSString *)phoneNumber {
- objc_setAssociatedObject(self, @selector(fir_authPhoneNumber), phoneNumber,
- OBJC_ASSOCIATION_RETAIN_NONATOMIC);
-}
-
-- (NSString *)fir_authPhoneNumber {
- return objc_getAssociatedObject(self, @selector(fir_authPhoneNumber));
-}
-
-@end
-
-NS_ASSUME_NONNULL_END