소스 검색

clear old code

marinofaggiana 4 년 전
부모
커밋
3a022fdc22
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      iOSClient/ManageLocation+ManageAsset/CCManageLocation.m

+ 1 - 5
iOSClient/ManageLocation+ManageAsset/CCManageLocation.m

@@ -62,14 +62,10 @@
 
 - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
 {
-    AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
     CLLocation* location = [locations lastObject];
     
     [[NCCommunicationCommon shared] writeLog:[NSString stringWithFormat:@"update location manager: latitude %+.6f, longitude %+.6f", location.coordinate.latitude, location.coordinate.longitude]];
-    
-    appDelegate.currentLatitude = location.coordinate.latitude;
-    appDelegate.currentLongitude = location.coordinate.longitude;
-    
+        
     [self.delegate changedLocation];
 }