From c92ebb171e343390d3f3304df365cc3bffabbcc6 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Sun, 11 Sep 2016 14:47:01 +0300 Subject: [PATCH] Removes not used mutex. It was just initialised. Neither locked nor unlocked. --- DJIDebuger/DJIDRootViewController.m | 9 --------- 1 file changed, 9 deletions(-) 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];