Browse Source

clear old code

marinofaggiana 4 years ago
parent
commit
3a022fdc22
1 changed files with 1 additions and 5 deletions
  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];
 }