Remove iostream references
With the adoption of LG2 we do not need iostream
prints to the journal. The library was referred but
never used in these cases.
Signed-off-by: Sagar Srinivas <sagar.srinivas@ibm.com>
Change-Id: I11d3f00284e4f16b63cddb8da2fed14d59672ba1
diff --git a/fw-update/package_parser.cpp b/fw-update/package_parser.cpp
index ddc82d6..8454770 100644
--- a/fw-update/package_parser.cpp
+++ b/fw-update/package_parser.cpp
@@ -8,7 +8,6 @@
#include <phosphor-logging/lg2.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
-#include <iostream>
#include <memory>
PHOSPHOR_LOG2_USING;
diff --git a/host-bmc/dbus_to_host_effecters.cpp b/host-bmc/dbus_to_host_effecters.cpp
index d83b4d9..d5aeb58 100644
--- a/host-bmc/dbus_to_host_effecters.cpp
+++ b/host-bmc/dbus_to_host_effecters.cpp
@@ -9,7 +9,6 @@
#include <xyz/openbmc_project/State/OperatingSystem/Status/server.hpp>
#include <fstream>
-#include <iostream>
PHOSPHOR_LOG2_USING;
diff --git a/host-bmc/test/dbus_to_host_effecter_test.cpp b/host-bmc/test/dbus_to_host_effecter_test.cpp
index b0b8a6c..00653ce 100644
--- a/host-bmc/test/dbus_to_host_effecter_test.cpp
+++ b/host-bmc/test/dbus_to_host_effecter_test.cpp
@@ -4,8 +4,6 @@
#include <nlohmann/json.hpp>
-#include <iostream>
-
#include <gtest/gtest.h>
using namespace pldm::host_effecters;
diff --git a/libpldmresponder/base.cpp b/libpldmresponder/base.cpp
index 9e0598f..8d7b918 100644
--- a/libpldmresponder/base.cpp
+++ b/libpldmresponder/base.cpp
@@ -12,7 +12,6 @@
#include <array>
#include <cstring>
-#include <iostream>
#include <map>
#include <stdexcept>
#include <vector>
diff --git a/libpldmresponder/bios.cpp b/libpldmresponder/bios.cpp
index 637b213..a6c0c99 100644
--- a/libpldmresponder/bios.cpp
+++ b/libpldmresponder/bios.cpp
@@ -9,7 +9,6 @@
#include <array>
#include <chrono>
#include <ctime>
-#include <iostream>
#include <stdexcept>
#include <string>
#include <variant>
diff --git a/libpldmresponder/bios_attribute.cpp b/libpldmresponder/bios_attribute.cpp
index 2049512..d839c0e 100644
--- a/libpldmresponder/bios_attribute.cpp
+++ b/libpldmresponder/bios_attribute.cpp
@@ -3,7 +3,6 @@
#include "bios_config.hpp"
#include "common/utils.hpp"
-#include <iostream>
#include <variant>
using namespace pldm::utils;
diff --git a/libpldmresponder/bios_config.cpp b/libpldmresponder/bios_config.cpp
index 8b52a8c..c5c549c 100644
--- a/libpldmresponder/bios_config.cpp
+++ b/libpldmresponder/bios_config.cpp
@@ -10,7 +10,6 @@
#include <xyz/openbmc_project/BIOSConfig/Manager/server.hpp>
#include <fstream>
-#include <iostream>
#ifdef OEM_IBM
#include "oem/ibm/libpldmresponder/platform_oem_ibm.hpp"
diff --git a/libpldmresponder/bios_enum_attribute.cpp b/libpldmresponder/bios_enum_attribute.cpp
index 3f5272f..437830e 100644
--- a/libpldmresponder/bios_enum_attribute.cpp
+++ b/libpldmresponder/bios_enum_attribute.cpp
@@ -4,8 +4,6 @@
#include <phosphor-logging/lg2.hpp>
-#include <iostream>
-
PHOSPHOR_LOG2_USING;
using namespace pldm::utils;
diff --git a/libpldmresponder/bios_string_attribute.cpp b/libpldmresponder/bios_string_attribute.cpp
index 77965d3..28dde14 100644
--- a/libpldmresponder/bios_string_attribute.cpp
+++ b/libpldmresponder/bios_string_attribute.cpp
@@ -4,7 +4,6 @@
#include <phosphor-logging/lg2.hpp>
-#include <iostream>
#include <tuple>
#include <variant>
diff --git a/libpldmresponder/fru.cpp b/libpldmresponder/fru.cpp
index 58c3316..de6fe1f 100644
--- a/libpldmresponder/fru.cpp
+++ b/libpldmresponder/fru.cpp
@@ -9,7 +9,6 @@
#include <phosphor-logging/lg2.hpp>
#include <sdbusplus/bus.hpp>
-#include <iostream>
#include <optional>
#include <set>
#include <stack>
diff --git a/libpldmresponder/fru_parser.cpp b/libpldmresponder/fru_parser.cpp
index 70f1d9b..c875ffa 100644
--- a/libpldmresponder/fru_parser.cpp
+++ b/libpldmresponder/fru_parser.cpp
@@ -6,7 +6,6 @@
#include <filesystem>
#include <fstream>
-#include <iostream>
PHOSPHOR_LOG2_USING;
diff --git a/libpldmresponder/test/libpldmresponder_platform_test.cpp b/libpldmresponder/test/libpldmresponder_platform_test.cpp
index ad3cb8e..c49ebad 100644
--- a/libpldmresponder/test/libpldmresponder_platform_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_platform_test.cpp
@@ -11,8 +11,6 @@
#include <sdbusplus/test/sdbus_mock.hpp>
#include <sdeventplus/event.hpp>
-#include <iostream>
-
using namespace pldm::pdr;
using namespace pldm::utils;
using namespace pldm::responder;
diff --git a/oem/ibm/libpldmresponder/file_io.cpp b/oem/ibm/libpldmresponder/file_io.cpp
index bfb2fd1..5d394e3 100644
--- a/oem/ibm/libpldmresponder/file_io.cpp
+++ b/oem/ibm/libpldmresponder/file_io.cpp
@@ -16,7 +16,6 @@
#include <cstring>
#include <fstream>
-#include <iostream>
#include <memory>
PHOSPHOR_LOG2_USING;
diff --git a/oem/ibm/libpldmresponder/file_io_by_type.cpp b/oem/ibm/libpldmresponder/file_io_by_type.cpp
index b3a396b..9826fdb 100644
--- a/oem/ibm/libpldmresponder/file_io_by_type.cpp
+++ b/oem/ibm/libpldmresponder/file_io_by_type.cpp
@@ -20,7 +20,6 @@
#include <exception>
#include <filesystem>
#include <fstream>
-#include <iostream>
#include <vector>
PHOSPHOR_LOG2_USING;
diff --git a/oem/ibm/libpldmresponder/file_io_type_cert.cpp b/oem/ibm/libpldmresponder/file_io_type_cert.cpp
index b650ef5..a5b4e21 100644
--- a/oem/ibm/libpldmresponder/file_io_type_cert.cpp
+++ b/oem/ibm/libpldmresponder/file_io_type_cert.cpp
@@ -8,8 +8,6 @@
#include <phosphor-logging/lg2.hpp>
-#include <iostream>
-
PHOSPHOR_LOG2_USING;
namespace pldm
diff --git a/oem/ibm/libpldmresponder/file_io_type_dump.cpp b/oem/ibm/libpldmresponder/file_io_type_dump.cpp
index 8f1c765..19b14d7 100644
--- a/oem/ibm/libpldmresponder/file_io_type_dump.cpp
+++ b/oem/ibm/libpldmresponder/file_io_type_dump.cpp
@@ -16,7 +16,6 @@
#include <exception>
#include <filesystem>
-#include <iostream>
#include <type_traits>
PHOSPHOR_LOG2_USING;
diff --git a/oem/ibm/libpldmresponder/file_io_type_pel.cpp b/oem/ibm/libpldmresponder/file_io_type_pel.cpp
index 6e27d46..458697b 100644
--- a/oem/ibm/libpldmresponder/file_io_type_pel.cpp
+++ b/oem/ibm/libpldmresponder/file_io_type_pel.cpp
@@ -17,7 +17,6 @@
#include <exception>
#include <filesystem>
#include <fstream>
-#include <iostream>
#include <vector>
PHOSPHOR_LOG2_USING;
diff --git a/oem/ibm/libpldmresponder/file_io_type_vpd.cpp b/oem/ibm/libpldmresponder/file_io_type_vpd.cpp
index 08d7a51..ade6ee6 100644
--- a/oem/ibm/libpldmresponder/file_io_type_vpd.cpp
+++ b/oem/ibm/libpldmresponder/file_io_type_vpd.cpp
@@ -8,8 +8,6 @@
#include <phosphor-logging/lg2.hpp>
-#include <iostream>
-
PHOSPHOR_LOG2_USING;
typedef uint8_t byte;
diff --git a/oem/ibm/libpldmresponder/file_table.cpp b/oem/ibm/libpldmresponder/file_table.cpp
index 5c2a2da..b030f82 100644
--- a/oem/ibm/libpldmresponder/file_table.cpp
+++ b/oem/ibm/libpldmresponder/file_table.cpp
@@ -5,7 +5,6 @@
#include <phosphor-logging/lg2.hpp>
#include <fstream>
-#include <iostream>
PHOSPHOR_LOG2_USING;
diff --git a/oem/ibm/libpldmresponder/platform_oem_ibm.cpp b/oem/ibm/libpldmresponder/platform_oem_ibm.cpp
index 7ac8ada..6f519a2 100644
--- a/oem/ibm/libpldmresponder/platform_oem_ibm.cpp
+++ b/oem/ibm/libpldmresponder/platform_oem_ibm.cpp
@@ -9,8 +9,6 @@
#include <xyz/openbmc_project/Common/error.hpp>
#include <xyz/openbmc_project/State/Boot/Progress/client.hpp>
-#include <iostream>
-
PHOSPHOR_LOG2_USING;
namespace pldm
diff --git a/oem/ibm/libpldmresponder/utils.cpp b/oem/ibm/libpldmresponder/utils.cpp
index c41211e..7126ff8 100644
--- a/oem/ibm/libpldmresponder/utils.cpp
+++ b/oem/ibm/libpldmresponder/utils.cpp
@@ -8,8 +8,6 @@
#include <phosphor-logging/lg2.hpp>
-#include <iostream>
-
PHOSPHOR_LOG2_USING;
namespace pldm
diff --git a/oem/ibm/test/libpldmresponder_oem_platform_test.cpp b/oem/ibm/test/libpldmresponder_oem_platform_test.cpp
index 0a8f422..967cc08 100644
--- a/oem/ibm/test/libpldmresponder_oem_platform_test.cpp
+++ b/oem/ibm/test/libpldmresponder_oem_platform_test.cpp
@@ -13,8 +13,6 @@
#include <sdeventplus/event.hpp>
-#include <iostream>
-
using namespace pldm::utils;
using namespace pldm::responder;
using namespace pldm::responder::pdr;
diff --git a/pldmd/dbus_impl_pdr.cpp b/pldmd/dbus_impl_pdr.cpp
index 1516c8d..231f64d 100644
--- a/pldmd/dbus_impl_pdr.cpp
+++ b/pldmd/dbus_impl_pdr.cpp
@@ -6,8 +6,6 @@
#include <libpldm/pdr.h>
#include <libpldm/pldm_types.h>
-#include <iostream>
-
using namespace sdbusplus::xyz::openbmc_project::Common::Error;
namespace pldm
diff --git a/pldmd/pldmd.cpp b/pldmd/pldmd.cpp
index e2ca648..7b932fa 100644
--- a/pldmd/pldmd.cpp
+++ b/pldmd/pldmd.cpp
@@ -34,7 +34,6 @@
#include <cstring>
#include <fstream>
#include <iomanip>
-#include <iostream>
#include <iterator>
#include <memory>
#include <ranges>
diff --git a/softoff/main.cpp b/softoff/main.cpp
index ff6252d..e5f61d2 100644
--- a/softoff/main.cpp
+++ b/softoff/main.cpp
@@ -3,8 +3,6 @@
#include <phosphor-logging/lg2.hpp>
-#include <iostream>
-
PHOSPHOR_LOG2_USING;
int main()
diff --git a/softoff/softoff.cpp b/softoff/softoff.cpp
index 2e67db9..78a59ed 100644
--- a/softoff/softoff.cpp
+++ b/softoff/softoff.cpp
@@ -16,7 +16,6 @@
#include <sdeventplus/source/time.hpp>
#include <array>
-#include <iostream>
PHOSPHOR_LOG2_USING;
diff --git a/utilities/requester/set_state_effecter.cpp b/utilities/requester/set_state_effecter.cpp
index 4243f4c..21c332d 100644
--- a/utilities/requester/set_state_effecter.cpp
+++ b/utilities/requester/set_state_effecter.cpp
@@ -6,7 +6,6 @@
#include <phosphor-logging/lg2.hpp>
#include <array>
-#include <iostream>
PHOSPHOR_LOG2_USING;
diff --git a/utilities/requester/set_state_effecter_async.cpp b/utilities/requester/set_state_effecter_async.cpp
index ebaa524..80b56c2 100644
--- a/utilities/requester/set_state_effecter_async.cpp
+++ b/utilities/requester/set_state_effecter_async.cpp
@@ -9,7 +9,6 @@
#include <sdeventplus/source/io.hpp>
#include <array>
-#include <iostream>
using namespace sdeventplus;
using namespace sdeventplus::source;