mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-28 01:28:46 +00:00
Remove unused code in Persistence initializer
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user