summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-13 18:42:11 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-13 18:48:28 +0100
commitd608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7 (patch)
tree695b0fa507f9e77f85f75116b8e77c12639f570a /rbutil/rbutilqt/base
parent4307f95a1f57d3038a2d41f0f4c0ddf33f50630d (diff)
downloadrockbox-d608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7.tar.gz
rockbox-d608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7.zip
Remove HttpGet::error() function.
This function returns an internal enum value of QHttp (which is also deprecated). It was only used for showing an error to the user / showing it in the system trace. Since it is an enum value it doesn't have much value. Log / show the error string instead. Change-Id: I54b9b6026969f8108f779b02a04477f0ad9201ab
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r--rbutil/rbutilqt/base/bootloaderinstallbase.cpp2
-rw-r--r--rbutil/rbutilqt/base/httpget.cpp9
-rw-r--r--rbutil/rbutilqt/base/httpget.h1
3 files changed, 1 insertions, 11 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
index 7a9258accc..6cfb2cd1c6 100644
--- a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
+++ b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp
@@ -80,7 +80,7 @@ void BootloaderInstallBase::downloadBlFinish(bool error)
}
if(error) {
emit logItem(tr("Download error: %1")
- .arg(m_http.error()), LOGERROR);
+ .arg(m_http.errorString()), LOGERROR);
emit done(true);
return;
}
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp
index dc2b2ea0ed..05005ee6d3 100644
--- a/rbutil/rbutilqt/base/httpget.cpp
+++ b/rbutil/rbutilqt/base/httpget.cpp
@@ -118,15 +118,6 @@ QByteArray HttpGet::readAll()
}
-/** @brief get http error
- * @return http error
- */
-QHttp::Error HttpGet::error()
-{
- return http.error();
-}
-
-
void HttpGet::setProxy(const QUrl &proxy)
{
m_proxy = proxy;
diff --git a/rbutil/rbutilqt/base/httpget.h b/rbutil/rbutilqt/base/httpget.h
index 438853ce82..e8a936de08 100644
--- a/rbutil/rbutilqt/base/httpget.h
+++ b/rbutil/rbutilqt/base/httpget.h
@@ -35,7 +35,6 @@ class HttpGet : public QObject
bool getFile(const QUrl &url);
void setProxy(const QUrl &url);
void setProxy(bool);
- QHttp::Error error(void);
QString errorString(void);
void setFile(QFile*);
void setCache(const QDir&);