remove debug driver singleton

This commit is contained in:
王劲鹏 2020-02-26 12:04:33 +08:00 committed by osborn
parent d215926387
commit 3766c603ba
2 changed files with 0 additions and 10 deletions

View File

@ -32,7 +32,6 @@ typedef NS_ENUM(NSInteger, DoricQueueMode) {
NS_ASSUME_NONNULL_BEGIN
@interface DoricDebugDriver : NSObject <DoricDriverProtocol>
+ (instancetype)instance;
@end
NS_ASSUME_NONNULL_END

View File

@ -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);