Remove unused code in Persistence initializer

This commit is contained in:
chrwend
2016-03-24 12:44:25 -07:00
committed by Lukas Spieß
parent ba4831a82b
commit 9286c290ba
2 changed files with 1 additions and 10 deletions

View File

@@ -34,10 +34,8 @@ FOUNDATION_EXPORT char *BITSafeJsonEventsString;
* Reset BITSafeJsonEventsString so we can start appending JSON dictionaries.
*
* @param item The telemetry object, which should be processed
*
* @return YES if the item was successfully enqueued, no if an error occured or the data pipeline was saturated.
*/
- (BOOL)enqueueTelemetryItem:(BITTelemetryData *)item;
- (void)enqueueTelemetryItem:(BITTelemetryData *)item;
@end

View File

@@ -36,13 +36,6 @@ static NSUInteger const BITDefaultFileCount = 50;
_directorySetupComplete = NO; //will be set to true in createDirectoryStructureIfNeeded
[self createDirectoryStructureIfNeeded];
NSString *directoryPath = [self folderPathForType:BITPersistenceTypeTelemetry];
NSError *error = nil;
NSArray<NSURL *> *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtURL:[NSURL fileURLWithPath:directoryPath]
includingPropertiesForKeys:@[NSURLNameKey]
options:NSDirectoryEnumerationSkipsHiddenFiles
error:&error];
}
return self;
}