remove debug driver singleton
This commit is contained in:
		| @@ -32,7 +32,6 @@ typedef NS_ENUM(NSInteger, DoricQueueMode) { | ||||
| NS_ASSUME_NONNULL_BEGIN | ||||
|  | ||||
| @interface DoricDebugDriver : NSObject <DoricDriverProtocol> | ||||
| + (instancetype)instance; | ||||
| @end | ||||
|  | ||||
| NS_ASSUME_NONNULL_END | ||||
|   | ||||
| @@ -44,15 +44,6 @@ - (DoricRegistry *)registry { | ||||
|     return self.jsExecutor.registry; | ||||
| } | ||||
| 
 | ||||
| + (instancetype)instance { | ||||
|     static DoricDebugDriver *_instance; | ||||
|     static dispatch_once_t onceToken; | ||||
|     dispatch_once(&onceToken, ^{ | ||||
|         _instance = [[DoricDebugDriver alloc] init]; | ||||
|     }); | ||||
|     return _instance; | ||||
| } | ||||
| 
 | ||||
| - (DoricAsyncResult<JSValue *> *)invokeDoricMethod:(NSString *)method, ... { | ||||
|     va_list args; | ||||
|     va_start(args, method); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user