Commit 7452aaff authored by Harald Sitter's avatar Harald Sitter
Browse files

mtp: drop unused redirect argument

this is always true and never called with false, it serves no purpose
but increasing complexity
parent c345fd2e
......@@ -129,9 +129,9 @@ MTPSlave::~MTPSlave()
qCDebug(LOG_KIO_MTP) << "Slave destroyed";
}
int MTPSlave::checkUrl(const QUrl &url, bool redirect)
int MTPSlave::checkUrl(const QUrl &url)
{
if (url.path().startsWith(QLatin1String("udi=")) && redirect) {
if (url.path().startsWith(QLatin1String("udi="))) {
const QString udi = url.adjusted(QUrl::StripTrailingSlash).path().remove(0, 4);
qCDebug(LOG_KIO_MTP) << "udi = " << udi;
......
......@@ -66,10 +66,9 @@ private:
* Check if it is a valid url or an udi.
*
* @param url The url to checkUrl
* @param redirect If udi= should be redirected or just return false
* @return 0 if valid, 1 if udi and redirected, 2 if udi but invalid device, -1 else
*/
int checkUrl(const QUrl &url, bool redirect = true);
int checkUrl(const QUrl &url);
void fileSystemFreeSpace(const QUrl &url);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment