diff options
author | Ed Tanous <ed@tanous.net> | 2024-03-20 22:12:08 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-25 21:29:19 +0300 |
commit | d0eb0e7303744d03aaa6f994bbbcdd6dc92bab13 (patch) | |
tree | 96bbc32bef935ec09a272b2cde0a38078d028944 | |
parent | f79ce6a8f745f0baa5ba457a5a0c85a9f549893f (diff) | |
download | bmcweb-d0eb0e7303744d03aaa6f994bbbcdd6dc92bab13.tar.xz |
Remove unused variable
These variables aren't used, and clang-tidy-18 flags it. Remove
Tested: Code compiles.
Change-Id: I414c4614a5f789aecab7700a4ec805e98c09cade
Signed-off-by: Ed Tanous <ed@tanous.net>
-rw-r--r-- | include/ibm/management_console_rest.hpp | 1 | ||||
-rw-r--r-- | test/redfish-core/include/redfish_aggregator_test.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp index a2da64fd9a..ec8d4d653d 100644 --- a/include/ibm/management_console_rest.hpp +++ b/include/ibm/management_console_rest.hpp @@ -213,7 +213,6 @@ inline void handleFilePut(const crow::Request& req, } file << data; - std::string origin = "/ibm/v1/Host/ConfigFiles/" + fileID; // Push an event if (fileExists) { diff --git a/test/redfish-core/include/redfish_aggregator_test.cpp b/test/redfish-core/include/redfish_aggregator_test.cpp index 0739355974..d3c819fcc4 100644 --- a/test/redfish-core/include/redfish_aggregator_test.cpp +++ b/test/redfish-core/include/redfish_aggregator_test.cpp @@ -108,7 +108,6 @@ TEST(addPrefixToItem, UnsupportedURIs) for (const auto& id : validIDs) { std::string initial("/redfish/v1/" + std::string(root) + "/"); - std::string correct(initial + "asdfjkl_" + std::string(id)); initial += id; jsonRequest["@odata.id"] = initial; addPrefixToItem(jsonRequest["@odata.id"], "asdfjkl"); |