From cc60cb6389082d6f39d9fb697f9e49800c4095f5 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Wed, 15 Oct 2014 11:43:23 +0200 Subject: [PATCH] Remove initializer --- Classes/PhoneMainView.m | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index 18d98df25..921cde416 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -54,11 +54,6 @@ static RootViewManager* rootViewManagerInstance = nil; } + (RootViewManager *)instance { - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - PhoneMainView* portrait = (PhoneMainView*)[(LinphoneAppDelegate*)([UIApplication sharedApplication].delegate) window].rootViewController; - rootViewManagerInstance =[[RootViewManager alloc]initWithPortrait:portrait]; - }); if( !rootViewManagerInstance ){ @throw [NSException exceptionWithName:@"RootViewManager" reason:@"nil instance" userInfo:nil]; }