From 3766c603ba290840bf9c2e9f8fed59e5d3e6e58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Wed, 26 Feb 2020 12:04:33 +0800 Subject: [PATCH] remove debug driver singleton --- doric-iOS/Devkit/Classes/DoricDebugDriver.h | 1 - doric-iOS/Devkit/Classes/DoricDebugDriver.m | 9 --------- 2 files changed, 10 deletions(-) diff --git a/doric-iOS/Devkit/Classes/DoricDebugDriver.h b/doric-iOS/Devkit/Classes/DoricDebugDriver.h index 21e64d38..bca04b65 100644 --- a/doric-iOS/Devkit/Classes/DoricDebugDriver.h +++ b/doric-iOS/Devkit/Classes/DoricDebugDriver.h @@ -32,7 +32,6 @@ typedef NS_ENUM(NSInteger, DoricQueueMode) { NS_ASSUME_NONNULL_BEGIN @interface DoricDebugDriver : NSObject -+ (instancetype)instance; @end NS_ASSUME_NONNULL_END diff --git a/doric-iOS/Devkit/Classes/DoricDebugDriver.m b/doric-iOS/Devkit/Classes/DoricDebugDriver.m index 87506ae6..f7841b82 100644 --- a/doric-iOS/Devkit/Classes/DoricDebugDriver.m +++ b/doric-iOS/Devkit/Classes/DoricDebugDriver.m @@ -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 *)invokeDoricMethod:(NSString *)method, ... { va_list args; va_start(args, method);