mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Improve designated initializer usage (#3132)
* Improve designated initializer usage * Some more changes * Add some whitespace * Fix some warning
This commit is contained in:
committed by
GitHub
parent
62d7e14ce1
commit
eaa875c7f2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user