diff --git a/DJIDebuger/DJIDRootViewController.m b/DJIDebuger/DJIDRootViewController.m index 2604a74..2f47c6e 100644 --- a/DJIDebuger/DJIDRootViewController.m +++ b/DJIDebuger/DJIDRootViewController.m @@ -25,8 +25,6 @@ @interface DJIDRootViewController () -@property (assign,nonatomic) pthread_mutex_t serviceMutex; - // UI @property (weak,nonatomic) IBOutlet UILabel* debugIdLabel; @property (weak,nonatomic) IBOutlet UILabel* debugTitleLabel; @@ -52,8 +50,6 @@ - (void) updateIPAddress:(NSString*) ipaddress { - (void)viewDidLoad { [super viewDidLoad]; - pthread_mutex_init(&_serviceMutex, NULL); - [self initUI]; weakSelf(target); @@ -70,11 +66,6 @@ - (UIStatusBarStyle) preferredStatusBarStyle { return UIStatusBarStyleLightContent; } --(void) dealloc -{ - pthread_mutex_destroy(&_serviceMutex); -} - -(void) viewWillAppear:(BOOL)animated { [super viewWillAppear:animated];