marinofaggiana 4 жил өмнө
parent
commit
3a022fdc22

+ 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];
 }