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 <jiaqing.zhao@intel.com>
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 4a05452..dd58e1b 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -2288,8 +2288,6 @@
}
}
-using ipsPropertiesType =
- std::vector<std::pair<std::string, dbus::utility::DbusVariantType>>;
/**
* @brief Parse the Idle Power Saver properties into json
*
@@ -2298,8 +2296,9 @@
*
* @return true if successful
*/
-inline bool parseIpsProperties(const std::shared_ptr<bmcweb::AsyncResp>& aResp,
- const ipsPropertiesType& properties)
+inline bool
+ parseIpsProperties(const std::shared_ptr<bmcweb::AsyncResp>& aResp,
+ const dbus::utility::DBusPropertiesMap& properties)
{
for (const auto& property : properties)
{
@@ -2428,7 +2427,7 @@
// 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