From 6c97168bd3a44c17640a307513f1b6cba19399cb Mon Sep 17 00:00:00 2001 From: Caleb Davenport Date: Tue, 31 Mar 2015 15:09:51 -0700 Subject: [PATCH] Clean up provider base class. --- Pod/Core/SimpleAuthProvider.m | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Pod/Core/SimpleAuthProvider.m b/Pod/Core/SimpleAuthProvider.m index 369d868..e1ec723 100644 --- a/Pod/Core/SimpleAuthProvider.m +++ b/Pod/Core/SimpleAuthProvider.m @@ -16,20 +16,19 @@ @interface SimpleAuthProvider () @implementation SimpleAuthProvider -@synthesize operationQueue = _operationQueue; +#pragma mark - Properties -#pragma mark - Public +@synthesize operationQueue = _operationQueue; -+ (NSString *)type { - [self doesNotRecognizeSelector:_cmd]; - return nil; +- (NSOperationQueue *)operationQueue { + if (!_operationQueue) { + _operationQueue = [[NSOperationQueue alloc] init]; + } + return _operationQueue; } -+ (NSDictionary *)defaultOptions { - return @{}; -} - +#pragma mark - Initializers - (instancetype)initWithOptions:(NSDictionary *)options { if ((self = [super init])) { @@ -39,18 +38,19 @@ - (instancetype)initWithOptions:(NSDictionary *)options { } -- (void)authorizeWithCompletion:(SimpleAuthRequestHandler)completion { +#pragma mark - Public + ++ (NSString *)type { [self doesNotRecognizeSelector:_cmd]; + return nil; } ++ (NSDictionary *)defaultOptions { + return @{}; +} -#pragma mark - Accessors - -- (NSOperationQueue *)operationQueue { - if (!_operationQueue) { - _operationQueue = [NSOperationQueue new]; - } - return _operationQueue; +- (void)authorizeWithCompletion:(SimpleAuthRequestHandler)completion { + [self doesNotRecognizeSelector:_cmd]; } @end