Remove extra initializer methods from type and attribute selectors
keep it simple
This commit is contained in:
@@ -14,9 +14,6 @@
|
||||
|
||||
@interface CSSSimpleSequence : CSSSelector
|
||||
|
||||
+ (instancetype)sequenceForType:(CSSTypeSelector *)typeSelector;
|
||||
+ (instancetype)sequenceWithSelectors:(NSArray *)selectors;
|
||||
|
||||
- (instancetype)initWithType:(CSSTypeSelector *)selector;
|
||||
- (instancetype)initWithSelectors:(NSArray *)selectors;
|
||||
|
||||
|
||||
@@ -16,16 +16,6 @@
|
||||
|
||||
@implementation CSSSimpleSequence
|
||||
|
||||
+ (instancetype)sequenceForType:(CSSTypeSelector *)typeSelector
|
||||
{
|
||||
return [[self alloc] initWithType:typeSelector];
|
||||
}
|
||||
|
||||
+ (instancetype)sequenceWithSelectors:(NSArray *)selectors
|
||||
{
|
||||
return [[self alloc] initWithSelectors:selectors];
|
||||
}
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
return [self initWithSelectors:nil];
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
@property (nonatomic, copy) NSString *type;
|
||||
|
||||
+ (instancetype)universalSelector;
|
||||
+ (instancetype)selectorForType:(NSString *)type;
|
||||
|
||||
- (instancetype)initWithType:(NSString *)type;
|
||||
|
||||
|
||||
@@ -23,11 +23,6 @@
|
||||
return [[self alloc] initWithType:@"*"];
|
||||
}
|
||||
|
||||
+ (instancetype)selectorForType:(NSString *)type
|
||||
{
|
||||
return [[self alloc] initWithType:type];
|
||||
}
|
||||
|
||||
- (instancetype)initWithType:(NSString *)type
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
Reference in New Issue
Block a user