iOS:Remove unused method

This commit is contained in:
pengfeizhou 2021-02-01 14:58:14 +08:00 committed by osborn
parent 71e1863249
commit f0f660f709
2 changed files with 1 additions and 7 deletions

View File

@ -21,8 +21,6 @@
@interface NSObject (Doric) @interface NSObject (Doric)
- (id)apply:(id (NS_NOESCAPE ^)(id it))block;
- (instancetype)also:(void (NS_NOESCAPE ^)(id it))block; - (instancetype)also:(void (NS_NOESCAPE ^)(id it))block;
- (void)let:(void (NS_NOESCAPE ^)(id it))block; - (void)let:(void (NS_NOESCAPE ^)(id it))block;

View File

@ -20,10 +20,6 @@
#import "DoricExtensions.h" #import "DoricExtensions.h"
@implementation NSObject (Doric) @implementation NSObject (Doric)
- (id)apply:(id (^)(NS_NOESCAPE id it))block {
return block(self);
}
- (instancetype)also:(void (NS_NOESCAPE ^)(id it))block { - (instancetype)also:(void (NS_NOESCAPE ^)(id it))block {
block(self); block(self);
return self; return self;