From b2e9b45e8f45622a8fd4eaf2071dd87435d58b2d Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Sun, 12 Aug 2018 15:42:48 +0300 Subject: [PATCH] Remove last references to ASIHTTPRequest Note : we are now happy with the default userAgent which looks like : Vienna/6928 CFNetwork/902.1 Darwin/17.7.0 (x86_64) so no need to set HTTPAdditionalHeaders in our session configuration. --- Vienna/Sources/Application/AppController.h | 1 - Vienna/Sources/Application/AppController.m | 2 -- Vienna/Sources/Fetching/RefreshManager.h | 1 - Vienna/Sources/Shared/Constants.h | 1 - Vienna/Sources/Shared/Constants.m | 1 - 5 files changed, 6 deletions(-) diff --git a/Vienna/Sources/Application/AppController.h b/Vienna/Sources/Application/AppController.h index f242271701..a21a3e8fec 100644 --- a/Vienna/Sources/Application/AppController.h +++ b/Vienna/Sources/Application/AppController.h @@ -18,7 +18,6 @@ // limitations under the License. // -@import ASIHTTPRequest; @import Cocoa; @import IOKit.pwr_mgt; @import WebKit; diff --git a/Vienna/Sources/Application/AppController.m b/Vienna/Sources/Application/AppController.m index b8829a4a62..b6c001465e 100644 --- a/Vienna/Sources/Application/AppController.m +++ b/Vienna/Sources/Application/AppController.m @@ -172,8 +172,6 @@ -(void)doSafeInitialisation static BOOL doneSafeInit = NO; if (!doneSafeInit) { - [ASIHTTPRequest setDefaultUserAgentString:[NSString stringWithFormat:MA_DefaultUserAgentString, ((ViennaApp *)NSApp).applicationVersion.firstWord]]; - [self.foldersTree initialiseFoldersTree]; Preferences * prefs = [Preferences standardPreferences]; diff --git a/Vienna/Sources/Fetching/RefreshManager.h b/Vienna/Sources/Fetching/RefreshManager.h index f25d4bcaef..02e7ca8f7b 100644 --- a/Vienna/Sources/Fetching/RefreshManager.h +++ b/Vienna/Sources/Fetching/RefreshManager.h @@ -18,7 +18,6 @@ // limitations under the License. // -@import ASIHTTPRequest; @import Foundation; @class Database; diff --git a/Vienna/Sources/Shared/Constants.h b/Vienna/Sources/Shared/Constants.h index ba37409c56..c7a3004fa1 100644 --- a/Vienna/Sources/Shared/Constants.h +++ b/Vienna/Sources/Shared/Constants.h @@ -21,7 +21,6 @@ @import Foundation; extern NSString * MA_DefaultStyleName; -extern NSString * MA_DefaultUserAgentString; extern NSString * MA_BrowserUserAgentString; extern NSString * MAPref_ArticleListFont; diff --git a/Vienna/Sources/Shared/Constants.m b/Vienna/Sources/Shared/Constants.m index 8928c13b95..8ad79f1dfc 100644 --- a/Vienna/Sources/Shared/Constants.m +++ b/Vienna/Sources/Shared/Constants.m @@ -20,7 +20,6 @@ @import Foundation; -NSString * MA_DefaultUserAgentString = @"Mozilla/5.0 Vienna/%@"; NSString * MA_BrowserUserAgentString = @"(Macintosh; Intel Mac OS X %@) AppleWebKit/%@ (KHTML, like Gecko) Version/%@ Safari/604.1.38 Vienna/%@"; NSString * MAPref_ArticleListFont = @"MessageListFont";