diff options
author | Jüri Valdmann <juri.valdmann@qt.io> | 2020-04-08 13:59:48 +0200 |
---|---|---|
committer | Jüri Valdmann <juri.valdmann@qt.io> | 2020-04-10 05:04:32 +0200 |
commit | 8cd89e807b58c4ac750b5719ddde319741a7edb9 (patch) | |
tree | 714ab8be333feb00a8bc03c6a692a11b8c6c378e /src/core/profile_adapter.cpp | |
parent | a3bc7f797d740da416b858806ce9fcfb46e77ac6 (diff) |
ProfileIODataQt: remove more remains of non network service code
Task-number: QTBUG-83394
Change-Id: Ib1b4431ac75ae7e988bf62580e2bfb690840f54a
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/profile_adapter.cpp')
-rw-r--r-- | src/core/profile_adapter.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/core/profile_adapter.cpp b/src/core/profile_adapter.cpp index e9e2a2c5d..c27883b65 100644 --- a/src/core/profile_adapter.cpp +++ b/src/core/profile_adapter.cpp @@ -318,21 +318,6 @@ void ProfileAdapter::setCachePath(const QString &path) m_profile->m_profileIOData->resetNetworkContext(); } -QString ProfileAdapter::cookiesPath() const -{ - if (m_offTheRecord) - return QString(); - QString basePath = dataPath(); - if (!basePath.isEmpty()) { - // This is a typo fix. We still need the old path in order to avoid breaking migration. - QDir coookiesFolder(basePath % QLatin1String("/Coookies")); - if (coookiesFolder.exists()) - return coookiesFolder.path(); - return basePath % QLatin1String("/Cookies"); - } - return QString(); -} - QString ProfileAdapter::httpCachePath() const { if (m_offTheRecord) @@ -393,7 +378,7 @@ void ProfileAdapter::setHttpCacheType(ProfileAdapter::HttpCacheType newhttpCache ProfileAdapter::PersistentCookiesPolicy ProfileAdapter::persistentCookiesPolicy() const { - if (isOffTheRecord() || cookiesPath().isEmpty()) + if (isOffTheRecord() || dataPath().isEmpty()) return NoPersistentCookies; return m_persistentCookiesPolicy; } |