diff options
| author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2023-04-12 13:38:20 +0300 |
|---|---|---|
| committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2023-04-13 15:40:09 +0300 |
| commit | cda096486013d2f5ab39f0a2fd86235ef27fc67c (patch) | |
| tree | 899270469b13d8cd9adef2cfae11886faae7c46e | |
| parent | f5055dd810d50feb81d4b4a5553b7199d877f5fc (diff) | |
Cleanup: remove commented out code
Change-Id: Id5253f628acc7823fcf697a1115cd13952d2125d
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
| -rw-r--r-- | src/libs/qlicenseservice/daemon_clients/pluginhandler.h | 1 | ||||
| -rw-r--r-- | src/libs/qlicenseservice/httpclient.cpp | 4 | ||||
| -rw-r--r-- | src/libs/qlicenseservice/tcpserver.cpp | 1 |
3 files changed, 0 insertions, 6 deletions
diff --git a/src/libs/qlicenseservice/daemon_clients/pluginhandler.h b/src/libs/qlicenseservice/daemon_clients/pluginhandler.h index dd4a144..2335b78 100644 --- a/src/libs/qlicenseservice/daemon_clients/pluginhandler.h +++ b/src/libs/qlicenseservice/daemon_clients/pluginhandler.h @@ -32,7 +32,6 @@ class PluginHandler : public ClientHandler { pay << "\"host_os\":" << "\"" << m_settings.get("host_os") << "\","; pay << "\"src_version\":" << "\"" << m_request.appVersion << "\","; pay << "\"email\":" << "\"" << m_request.email << "\""; - //pay << "\"operation\":" << "\"" << m_request.operation << "\""; pay << "}"; m_request.payload = pay.str(); } diff --git a/src/libs/qlicenseservice/httpclient.cpp b/src/libs/qlicenseservice/httpclient.cpp index 583e54a..7f5d1fc 100644 --- a/src/libs/qlicenseservice/httpclient.cpp +++ b/src/libs/qlicenseservice/httpclient.cpp @@ -46,7 +46,6 @@ int HttpClient::sendRequest(std::string &reply, const std::string &payload, // normal request request.url += m_requestAccessPoint; std::string auth = "Authorization: " + authKey; - //std::cout << "Setting authorization: " << auth << std::endl; request.headers = curl_slist_append(request.headers, auth.c_str()); } else { if (payload.empty()) { @@ -64,8 +63,6 @@ int HttpClient::sendRequest(std::string &reply, const std::string &payload, request.headers = curl_slist_append(request.headers, "Content-Type: application/json"); request.headers = curl_slist_append(request.headers, "charset: utf-8"); - //std::cout << "HTTPClient() -- server URL " << request.url << std::endl; - int retVal = 0; /* init the curl session */ @@ -81,7 +78,6 @@ int HttpClient::sendRequest(std::string &reply, const std::string &payload, } if (retVal == 0) { std::cout << request.reply.length() << " bytes retrieved from license server\n"; - //std::cout << request.reply << std::endl; } else { std::cout << m_lastError << std::endl; } diff --git a/src/libs/qlicenseservice/tcpserver.cpp b/src/libs/qlicenseservice/tcpserver.cpp index 565f43a..2bebcb3 100644 --- a/src/libs/qlicenseservice/tcpserver.cpp +++ b/src/libs/qlicenseservice/tcpserver.cpp @@ -66,7 +66,6 @@ bool TcpServer::init() return false; } std::cout << "Listening to port " << m_serverPort << std::endl; - //ioctlsocket(m_masterSocket, FIONBIO, &mode); // Try to specify maximum of 3 pending connections for the master socket if (listen(m_masterSocket, 3) < 0) { doCloseSocket(m_masterSocket); |
