diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2024-04-03 12:22:27 +0300 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2024-04-09 09:28:36 +0300 |
commit | 3893cecc29f1aa7c8e844643b8986180778ecdbd (patch) | |
tree | 6ab1dc80cfeef5b815611426c8b1eb0f465340ab | |
parent | 3604266e924459651b85e1b4393d3ebccfa823b8 (diff) |
utils: remove unused getSystemHwInfoString() function
This is not used anymore, instead an UUID is generated for the
hardware id string used in request payloads.
Also removes remaining system() calls with non-absolute paths.
Task-number: QLS-677
Pick-to: 3.0
Change-Id: Ib4a5746ce9a0ea20437e2b74f3dc73f7358b140b
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
-rw-r--r-- | src/libs/qlicensecore/utils.cpp | 17 | ||||
-rw-r--r-- | src/libs/qlicensecore/utils.h | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/src/libs/qlicensecore/utils.cpp b/src/libs/qlicensecore/utils.cpp index de56256..9a64671 100644 --- a/src/libs/qlicensecore/utils.cpp +++ b/src/libs/qlicensecore/utils.cpp @@ -621,23 +621,6 @@ int getHostWordSize() return 8 * sizeof(void *); } -std::string getSystemHwInfoString() { - // Trying to get individual HW string, using network parameters and current time (epoch) - std::stringstream hwInfo; - std::string ip_mac; -#if _WIN32 - system("ipconfig > hw.txt"); -#elif __APPLE__ || __MACH__ - system("ifconfig > hw.txt"); -#elif __linux__ - system("ip addr > hw.txt"); -#endif - readFile(ip_mac, "hw.txt"); - hwInfo << utcTime() << std::endl << ip_mac; - deleteFile("hw.txt"); - return hwInfo.str(); -} - uint64_t getPID() { #ifdef _WIN32 return GetCurrentProcessId(); diff --git a/src/libs/qlicensecore/utils.h b/src/libs/qlicensecore/utils.h index 2e145cb..aeae719 100644 --- a/src/libs/qlicensecore/utils.h +++ b/src/libs/qlicensecore/utils.h @@ -105,7 +105,6 @@ bool getUsernameFromOS(std::string &username); std::string getOsName(); std::string getHostname(); int getHostWordSize(); -std::string getSystemHwInfoString(); uint64_t getPID(); void setBlockSignalsMask(); void sleepSecs(uint32_t timeInSecs); |