1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(toxme): Deleted old debug messages

This commit is contained in:
Diadlo 2016-04-16 01:42:21 +03:00
parent d1b706a4b3
commit ed606eadb4

View File

@ -227,13 +227,11 @@ QString Toxme::createAddress(ExecCode &code, QString server, ToxId id, QString a
"\"bio\":\""+bio+"\"," "\"bio\":\""+bio+"\","
"\"timestamp\":"+QString().setNum(time(0))+"}"}; "\"timestamp\":"+QString().setNum(time(0))+"}"};
qDebug() << payload;
QString pubkeyUrl = server + "/pk"; QString pubkeyUrl = server + "/pk";
QString apiUrl = server + "/api"; QString apiUrl = server + "/api";
QNetworkReply::NetworkError error = QNetworkReply::NoError; QNetworkReply::NetworkError error = QNetworkReply::NoError;
QByteArray encrypted = prepareEncryptedJson(pubkeyUrl, 1, payload); QByteArray encrypted = prepareEncryptedJson(pubkeyUrl, 1, payload);
QByteArray response = makeJsonRequest(apiUrl, encrypted, error); QByteArray response = makeJsonRequest(apiUrl, encrypted, error);
qDebug() << response;
code = extractError(response); code = extractError(response);
if ((code != Ok && code != Updated) || error != QNetworkReply::NoError) if ((code != Ok && code != Updated) || error != QNetworkReply::NoError)
@ -282,7 +280,6 @@ Toxme::ExecCode Toxme::deleteAddress(QString server, ToxId id)
if (!server.contains("://")) if (!server.contains("://"))
server = "https://" + server; server = "https://" + server;
qDebug() << payload;
QString pubkeyUrl = server + "/pk"; QString pubkeyUrl = server + "/pk";
QString apiUrl = server + "/api"; QString apiUrl = server + "/api";
QNetworkReply::NetworkError error = QNetworkReply::NoError; QNetworkReply::NetworkError error = QNetworkReply::NoError;