diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-01-13 19:45:29 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-01-13 19:45:29 +0100 |
commit | 1f1826e39c2e9c8b548017153b34ab8d68bb8d03 (patch) | |
tree | dd44d964f0c0e2c1f0b890d1a1bc5388ffdd44a2 /rbutil/rbutilqt/base/httpget.cpp | |
parent | d608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7 (diff) | |
download | rockbox-1f1826e39c2e9c8b548017153b34ab8d68bb8d03.tar.gz rockbox-1f1826e39c2e9c8b548017153b34ab8d68bb8d03.tar.bz2 rockbox-1f1826e39c2e9c8b548017153b34ab8d68bb8d03.zip |
Remove Rockbox Utility Offline Mode.
Offline Mode was intended to allow performing an installation without network
access. However, to get the required files cached the same installation has to
be performed with network access, which is a rather strange prerequisite. A
better way would be a way to direct Rockbox Utility to some local "repository"
that holds the required files.
Furthermore, Offline Mode hasn't been tested since long and is likely to be
broken since the caching mechanism has been extended.
For now remove this functionality. As far as I know it's been rarely used (if
at all) anyway.
Change-Id: Ib2af4892708e0440bd0a7940c131f04182ddb39a
Diffstat (limited to 'rbutil/rbutilqt/base/httpget.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/httpget.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp index 05005ee6d3..66a7076391 100644 --- a/rbutil/rbutilqt/base/httpget.cpp +++ b/rbutil/rbutilqt/base/httpget.cpp @@ -24,7 +24,6 @@ QDir HttpGet::m_globalCache; //< global cach path value for new objects QUrl HttpGet::m_globalProxy; //< global proxy value for new objects -bool HttpGet::m_globalDumbCache = false; //< globally set cache "dumb" mode QString HttpGet::m_globalUserAgent; //< globally set user agent for requests HttpGet::HttpGet(QObject *parent) @@ -32,7 +31,6 @@ HttpGet::HttpGet(QObject *parent) { outputToBuffer = true; m_cached = false; - m_dumbCache = m_globalDumbCache; getRequest = -1; headRequest = -1; // if a request is cancelled before a reponse is available return some @@ -213,7 +211,7 @@ bool HttpGet::getFile(const QUrl &url) m_header.setValue("User-Agent", m_globalUserAgent); m_header.setValue("Connection", "Keep-Alive"); - if(m_dumbCache || !m_usecache) { + if(!m_usecache) { getFileFinish(); } else { |