Moving some methods from threshold to utils
Two methods splitFileName and readFile seems to be more generic
and used not only by thresholds. Moving splitFileName and readFile
from the threshold namespace to utils.
Tested:
Manual tests where done on CPUSensor. No differences detected
comparing to results before these changes.
Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com>
Change-Id: I8ab58099eca740b6111a382f68f2ab32d7762a78
diff --git a/src/CPUSensorMain.cpp b/src/CPUSensorMain.cpp
index 42336c6..0ee9ea7 100644
--- a/src/CPUSensorMain.cpp
+++ b/src/CPUSensorMain.cpp
@@ -277,7 +277,7 @@
// iterate through all found temp sensors
for (const auto& inputPath : inputPaths)
{
- auto fileParts = thresholds::splitFileName(inputPath);
+ auto fileParts = splitFileName(inputPath);
if (!fileParts)
{
continue;