mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-21 03:29:54 +00:00
Remove pre-iOS 7 code
This commit is contained in:
@@ -113,17 +113,7 @@ static NSString *const kBITCrashMetaAttachment = @"BITCrashMetaAttachment";
|
||||
|
||||
- (void)testPersistAttachment {
|
||||
NSString *filename = @"TestAttachment";
|
||||
NSData *data = nil;
|
||||
|
||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_7_1
|
||||
data = [[NSData alloc] initWithBase64EncodedString:@"TestData" options:0];
|
||||
#else
|
||||
if ([[NSData class] respondsToSelector:@selector(initWithBase64EncodedString:options:)]) {
|
||||
data = [[NSData alloc] initWithBase64EncodedString:@"TestData" options:0];
|
||||
} else {
|
||||
data = [[NSData alloc] initWithBase64Encoding:@"TestData"];
|
||||
}
|
||||
#endif
|
||||
NSData *data = [[NSData alloc] initWithBase64EncodedString:@"TestData" options:0];
|
||||
|
||||
NSString* type = @"text/plain";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user