Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Clean up provider base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
calebd committed Mar 31, 2015
1 parent 23d6d55 commit 6c97168
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Pod/Core/SimpleAuthProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand All @@ -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

0 comments on commit 6c97168

Please sign in to comment.