summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@intel.com>2022-04-06 12:21:53 +0300
committerEd Tanous <ed@tanous.net>2022-04-07 06:08:09 +0300
commit83c835fb7e9efa3a0142981b0fbfd4b3c37134b2 (patch)
tree648bf017174f78d7af5ba4da7b1344b3627d99e9 /redfish-core/lib
parent5f4c798d0a1e0827363e167e54f4fb1dbffe9efa (diff)
downloadbmcweb-83c835fb7e9efa3a0142981b0fbfd4b3c37134b2.tar.xz
Remove unused modeString in translatePowerMode()
In systems.hpp:translatePowerMode(), modeString is defined but never used. Compiler also doesn't give a warning. Remove it. Tested: Build pass. Change-Id: Ic48c77f74a398bf74a2c874d6a6969efdd440a5f Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/systems.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index b619513357..32951ef4bc 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -1884,8 +1884,6 @@ inline void getProvisioningStatus(std::shared_ptr<bmcweb::AsyncResp> aResp)
inline void translatePowerMode(const std::shared_ptr<bmcweb::AsyncResp>& aResp,
const std::string& modeValue)
{
- std::string modeString;
-
if (modeValue == "xyz.openbmc_project.Control.Power.Mode.PowerMode.Static")
{
aResp->res.jsonValue["PowerMode"] = "Static";