Remove unused variables

cppcheck finds a few variables that were unused in a few modules.  Clean
them up.

Tested: Code compiles, unit tests pass.

Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I7a95025891bb537b45b99b3cd649ad05533e78f4
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp
index dd33fd4..2bede28 100644
--- a/include/ibm/management_console_rest.hpp
+++ b/include/ibm/management_console_rest.hpp
@@ -262,7 +262,6 @@
 inline void
     deleteConfigFiles(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
 {
-    std::vector<std::string> pathObjList;
     std::error_code ec;
     std::filesystem::path loc(
         "/var/lib/bmcweb/ibm-management-console/configfiles");
diff --git a/redfish-core/lib/ut/service_root_test.cpp b/redfish-core/lib/ut/service_root_test.cpp
index 1a7b249..80918d2 100644
--- a/redfish-core/lib/ut/service_root_test.cpp
+++ b/redfish-core/lib/ut/service_root_test.cpp
@@ -101,7 +101,6 @@
 
 TEST(ServiceRootTest, ServiceRootConstructor)
 {
-    std::error_code ec;
     auto shareAsyncResp = std::make_shared<bmcweb::AsyncResp>();
 
     shareAsyncResp->res.setCompleteRequestHandler(assertServiceRootGet);
diff --git a/redfish-core/ut/json_utils_test.cpp b/redfish-core/ut/json_utils_test.cpp
index cf7b734..ed8a79a 100644
--- a/redfish-core/ut/json_utils_test.cpp
+++ b/redfish-core/ut/json_utils_test.cpp
@@ -52,7 +52,6 @@
 
     int64_t integer = 0;
     std::string str0;
-    std::string str1;
     EXPECT_FALSE(readJson(jsonRequest, res, "integer", str0));
     EXPECT_EQ(res.result(), boost::beast::http::status::bad_request);
     EXPECT_FALSE(res.jsonValue.empty());
@@ -168,7 +167,6 @@
 
     std::optional<int> integer;
     std::optional<std::string> str;
-    std::optional<std::vector<uint8_t>> vec;
 
     EXPECT_FALSE(readJson(jsonRequest, res, "integer", integer));
     EXPECT_EQ(res.result(), boost::beast::http::status::bad_request);