Improve designated initializer usage (#3132)

* Improve designated initializer usage

* Some more changes

* Add some whitespace

* Fix some warning
This commit is contained in:
Michael Schneider
2017-03-03 14:49:34 -08:00
committed by GitHub
parent 62d7e14ce1
commit eaa875c7f2
19 changed files with 76 additions and 26 deletions

View File

@@ -21,8 +21,6 @@ NS_ASSUME_NONNULL_BEGIN
AS_SUBCLASSING_RESTRICTED
@interface ASMutableElementMap : NSObject <NSCopying>
- (instancetype)init __unavailable;
- (instancetype)initWithSections:(NSArray<ASSection *> *)sections items:(ASCollectionElementTwoDimensionalArray *)items supplementaryElements:(ASSupplementaryElementDictionary *)supplementaryElements;
- (void)insertSection:(ASSection *)section atIndex:(NSInteger)index;
@@ -49,4 +47,10 @@ AS_SUBCLASSING_RESTRICTED
@interface ASElementMap (MutableCopying) <NSMutableCopying>
@end
@interface ASMutableElementMap (Unavailable)
- (instancetype)init NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END