Remove redundant ConvertibleToKotlin protocol from runtime
This commit is contained in:
committed by
SvyatoslavScherbina
parent
c32fa6313b
commit
fde7265dae
@@ -34,11 +34,6 @@ inline static OBJ_GETTER(AllocInstanceWithAssociatedObject, const TypeInfo* type
|
||||
extern "C" id Kotlin_ObjCExport_refToObjC(ObjHeader* obj);
|
||||
extern "C" OBJ_GETTER(Kotlin_ObjCExport_refFromObjC, id obj);
|
||||
|
||||
@protocol ConvertibleToKotlin
|
||||
@required
|
||||
-(KRef)toKotlin:(KRef*)OBJ_RESULT;
|
||||
@end;
|
||||
|
||||
extern "C" id Kotlin_Interop_CreateNSStringFromKString(KRef str);
|
||||
extern "C" OBJ_GETTER(Kotlin_Interop_CreateKStringFromNSString, NSString* str);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#import "Memory.h"
|
||||
#import "ObjCExport.h"
|
||||
|
||||
@interface KotlinBase : NSObject <ConvertibleToKotlin, NSCopying>
|
||||
@interface KotlinBase : NSObject <NSCopying>
|
||||
+(instancetype)createWrapper:(ObjHeader*)obj;
|
||||
@end;
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ extern "C" id objc_autoreleaseReturnValue(id self);
|
||||
|
||||
@end;
|
||||
|
||||
@interface NSObject (NSObjectToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSObject (NSObjectToKotlin)
|
||||
@end;
|
||||
|
||||
static void checkLoadedOnce();
|
||||
@@ -152,7 +152,7 @@ static void checkLoadedOnce();
|
||||
}
|
||||
@end;
|
||||
|
||||
@interface NSString (NSStringToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSString (NSStringToKotlin)
|
||||
@end;
|
||||
|
||||
@implementation NSString (NSStringToKotlin)
|
||||
@@ -176,7 +176,7 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value);
|
||||
|
||||
}
|
||||
|
||||
@interface NSNumber (NSNumberToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSNumber (NSNumberToKotlin)
|
||||
@end;
|
||||
|
||||
@implementation NSNumber (NSNumberToKotlin)
|
||||
@@ -202,7 +202,7 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value);
|
||||
}
|
||||
@end;
|
||||
|
||||
@interface NSDecimalNumber (NSDecimalNumberToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSDecimalNumber (NSDecimalNumberToKotlin)
|
||||
@end;
|
||||
|
||||
@implementation NSDecimalNumber (NSDecimalNumberToKotlin)
|
||||
|
||||
@@ -81,7 +81,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) {
|
||||
return index;
|
||||
}
|
||||
|
||||
@interface NSArray (NSArrayToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSArray (NSArrayToKotlin)
|
||||
@end;
|
||||
|
||||
@implementation NSArray (NSArrayToKotlin)
|
||||
@@ -94,7 +94,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) {
|
||||
}
|
||||
@end;
|
||||
|
||||
@interface NSMutableArray (NSMutableArrayToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSMutableArray (NSMutableArrayToKotlin)
|
||||
@end;
|
||||
|
||||
@implementation NSMutableArray (NSArrayToKotlin)
|
||||
@@ -108,7 +108,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) {
|
||||
@end;
|
||||
|
||||
|
||||
@interface NSSet (NSSetToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSSet (NSSetToKotlin)
|
||||
@end;
|
||||
|
||||
@implementation NSSet (NSSetToKotlin)
|
||||
@@ -122,7 +122,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) {
|
||||
|
||||
@end;
|
||||
|
||||
@interface NSDictionary (NSDictionaryToKotlin) <ConvertibleToKotlin>
|
||||
@interface NSDictionary (NSDictionaryToKotlin)
|
||||
@end;
|
||||
|
||||
@implementation NSDictionary (NSDictionaryToKotlin)
|
||||
@@ -165,7 +165,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) {
|
||||
}
|
||||
@end;
|
||||
|
||||
@interface KListAsNSArray : NSArray <ConvertibleToKotlin>
|
||||
@interface KListAsNSArray : NSArray
|
||||
@end;
|
||||
|
||||
@implementation KListAsNSArray {
|
||||
@@ -199,7 +199,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) {
|
||||
|
||||
@end;
|
||||
|
||||
@interface KMutableListAsNSMutableArray : NSMutableArray <ConvertibleToKotlin>
|
||||
@interface KMutableListAsNSMutableArray : NSMutableArray
|
||||
@end;
|
||||
|
||||
@implementation KMutableListAsNSMutableArray {
|
||||
@@ -258,7 +258,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) {
|
||||
|
||||
@end;
|
||||
|
||||
@interface KSetAsNSSet : NSSet <ConvertibleToKotlin>
|
||||
@interface KSetAsNSSet : NSSet
|
||||
@end;
|
||||
|
||||
static inline id KSet_getElement(KRef set, id object) {
|
||||
@@ -314,7 +314,7 @@ static inline id KSet_getElement(KRef set, id object) {
|
||||
}
|
||||
@end;
|
||||
|
||||
@interface KotlinMutableSet : NSMutableSet <ConvertibleToKotlin>
|
||||
@interface KotlinMutableSet : NSMutableSet
|
||||
@end;
|
||||
|
||||
@implementation KotlinMutableSet {
|
||||
@@ -408,7 +408,7 @@ static inline id KSet_getElement(KRef set, id object) {
|
||||
}
|
||||
@end;
|
||||
|
||||
@interface KMapAsNSDictionary : NSDictionary <ConvertibleToKotlin>
|
||||
@interface KMapAsNSDictionary : NSDictionary
|
||||
@end;
|
||||
|
||||
static inline id KMap_get(KRef map, id aKey) {
|
||||
@@ -462,7 +462,7 @@ static inline id KMap_get(KRef map, id aKey) {
|
||||
|
||||
@end;
|
||||
|
||||
@interface KotlinMutableDictionary : NSMutableDictionary <ConvertibleToKotlin>
|
||||
@interface KotlinMutableDictionary : NSMutableDictionary
|
||||
@end;
|
||||
|
||||
@implementation KotlinMutableDictionary {
|
||||
|
||||
Reference in New Issue
Block a user