diff options
author | Tom Harrington <tph@atomicbird.com> | 2017-12-29 20:48:41 -0700 |
---|---|---|
committer | Hoà V. DINH <dinh.viet.hoa@gmail.com> | 2017-12-29 19:48:41 -0800 |
commit | e8dc319c2e5d9c0e49c03776276563572943d4f7 (patch) | |
tree | afaec5c949125987e4e08d793d09e5d384afa0e8 /src/objc/utils | |
parent | fa08441233e3acb4931be461e32fef00ac671606 (diff) |
Move unavailable initializers out of categories, so they’ll be properly handled in Swift. (#1698)
If NS_UNAVAILABLE is used in a category, Swift doesn’t notice, and these initializers are permitted even though they don’t work.
Diffstat (limited to 'src/objc/utils')
-rw-r--r-- | src/objc/utils/MCOOperation.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/objc/utils/MCOOperation.h b/src/objc/utils/MCOOperation.h index 65f77681..1c4583e4 100644 --- a/src/objc/utils/MCOOperation.h +++ b/src/objc/utils/MCOOperation.h @@ -36,10 +36,7 @@ /** Cancel the operation.*/ - (void) cancel; -@end - -@interface MCOOperation (MCOUnavailable) - +#pragma mark - Unavailable initializers /** Do not invoke this directly. */ - (instancetype) init NS_UNAVAILABLE; /** Do not invoke this directly. */ |