From 1e5b7c8892238b5d17c269bfa0ecdaf60825e801 Mon Sep 17 00:00:00 2001 From: Jiaqing Zhao Date: Mon, 15 Aug 2022 16:15:52 +0800 Subject: system: Remove ipsPropertiesType ipsPropertiesType is identical to dbus::utility::DBusPropertiesMap, change to the latter one for consistency. Tested: Build pass. Change-Id: Ibe006a252a8eb9c2861917ee255fc6093f0176ea Signed-off-by: Jiaqing Zhao --- redfish-core/lib/systems.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index 4a05452e55..dd58e1b641 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -2288,8 +2288,6 @@ inline void setWDTProperties(const std::shared_ptr& aResp, } } -using ipsPropertiesType = - std::vector>; /** * @brief Parse the Idle Power Saver properties into json * @@ -2298,8 +2296,9 @@ using ipsPropertiesType = * * @return true if successful */ -inline bool parseIpsProperties(const std::shared_ptr& aResp, - const ipsPropertiesType& properties) +inline bool + parseIpsProperties(const std::shared_ptr& aResp, + const dbus::utility::DBusPropertiesMap& properties) { for (const auto& property : properties) { @@ -2428,7 +2427,7 @@ inline void getIdlePowerSaver(const std::shared_ptr& aResp) // Valid IdlePowerSaver object found, now read the current values crow::connections::systemBus->async_method_call( [aResp](const boost::system::error_code ec2, - const ipsPropertiesType& properties) { + const dbus::utility::DBusPropertiesMap& properties) { if (ec2) { BMCWEB_LOG_ERROR -- cgit v1.2.3