From 736c75bdd8cb8e8727162b2145c212f3895713e2 Mon Sep 17 00:00:00 2001 From: Max Sandholm Date: Thu, 28 Sep 2017 15:41:47 +0300 Subject: [PATCH] Remove a mis-copy-pasted block of code --- src/MatrixClient.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 6c387bb3..0a7af2ce 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -871,13 +871,6 @@ MatrixClient::uploadImage(const QString &roomid, const QString &filename) QFile file(filename); if (!file.open(QIODevice::ReadWrite)) { - QUrl endpoint(server_); - endpoint.setPath("/_matrix/client/versions"); - - QNetworkRequest request(endpoint); - - QNetworkReply *reply = get(request); - reply->setProperty("endpoint", static_cast(Endpoint::Versions)); qDebug() << "Error while reading" << filename; return; }