mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			523 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			24 lines
		
	
	
		
			523 B
		
	
	
	
		
			Objective-C
		
	
//
 | 
						|
//  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | 
						|
//
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_BEGIN
 | 
						|
 | 
						|
// Notes:
 | 
						|
//
 | 
						|
// * On disk, we only bother cleaning up files, not directories.
 | 
						|
@interface OWSOrphanDataCleaner : NSObject
 | 
						|
 | 
						|
- (instancetype)init NS_UNAVAILABLE;
 | 
						|
 | 
						|
// This is exposed for the debug UI.
 | 
						|
+ (void)auditAndCleanup:(BOOL)shouldCleanup;
 | 
						|
// This is exposed for the tests.
 | 
						|
+ (void)auditAndCleanup:(BOOL)shouldCleanup completion:(dispatch_block_t)completion;
 | 
						|
 | 
						|
+ (void)auditOnLaunchIfNecessary;
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_END
 |