Move the getSubTree method to utils
Since the getSubTree method is a generic method that users may use
anywhere, It is better to move this method to utils.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ib6e1367b9885dac38a7ba6b63329977436e70c26
diff --git a/settings.hpp b/settings.hpp
index 8e5ead5..f45c910 100644
--- a/settings.hpp
+++ b/settings.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include "utils.hpp"
+
#include <sdbusplus/bus.hpp>
#include <string>
@@ -7,9 +9,7 @@
namespace settings
{
-using Path = std::string;
-using Service = std::string;
-using Interface = std::string;
+using namespace phosphor::time::utils;
constexpr auto root = "/";
constexpr auto timeSyncIntf = "xyz.openbmc_project.Time.Synchronization";