#1033 - Removing BackgroundStatus analytic

This commit is contained in:
Brad Leege
2015-03-20 17:14:25 -05:00
parent 263ae1a4cd
commit 33f4dfffd2
2 changed files with 0 additions and 9 deletions

View File

@@ -19,6 +19,4 @@
- (void) startUpdatingLocation;
- (void) stopUpdatingLocation;
- (void) setBackgroundStatus:(BOOL)isBackground;
@end

View File

@@ -16,13 +16,11 @@
@interface MGLMetricsLocationManager()
@property (atomic) CLLocationManager *locationManager;
@property (atomic) BOOL isBackground;
@end
@implementation MGLMetricsLocationManager
static MGLMetricsLocationManager *sharedManager = nil;
- (id) init {
@@ -75,10 +73,6 @@ static MGLMetricsLocationManager *sharedManager = nil;
}
}
- (void) setBackgroundStatus:(BOOL)isBackground {
self.isBackground = isBackground;
}
- (void) startUpdatingLocation {
[self.locationManager startUpdatingLocation];
}
@@ -105,7 +99,6 @@ static MGLMetricsLocationManager *sharedManager = nil;
NSMutableDictionary *evt = [[NSMutableDictionary alloc] init];
[evt setValue:[[NSNumber alloc] initWithDouble:loc.coordinate.latitude] forKey:@"lat"];
[evt setValue:[[NSNumber alloc] initWithDouble:loc.coordinate.longitude] forKey:@"lng"];
[evt setValue:[[NSNumber alloc] initWithBool:_isBackground] forKey:@"isBackground"];
[[MGLMapboxEvents sharedManager] pushEvent:@"location" withAttributes:evt];
}
}