aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-09-16 09:54:27 +0100
committerGravatar Sadie Powell2024-09-16 10:02:19 +0100
commitdfd72fe02937e5bc844966d055e7531f586ddac9 (patch)
treeb11d72e51819c6ef90f9516cc299963943098529
parentMake Cullable::Deleter const. (diff)
Remove some unnecessary uses of <iostream>.
-rw-r--r--src/modules/extra/m_log_json.cpp1
-rw-r--r--win/win32service.cpp10
2 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/extra/m_log_json.cpp b/src/modules/extra/m_log_json.cpp
index d8e2f1936..d1886c809 100644
--- a/src/modules/extra/m_log_json.cpp
+++ b/src/modules/extra/m_log_json.cpp
@@ -41,7 +41,6 @@
#include "inspircd.h"
#include "timeutils.h"
-#include <iostream>
class JSONMethod final
: public Log::Method
, public Timer
diff --git a/win/win32service.cpp b/win/win32service.cpp
index 9d53d0aab..390ede1c4 100644
--- a/win/win32service.cpp
+++ b/win/win32service.cpp
@@ -23,8 +23,6 @@
#include "inspircd.h"
-#include <iostream>
-
#include <windows.h>
static SERVICE_STATUS_HANDLE g_ServiceStatusHandle;
@@ -193,7 +191,7 @@ void InstallService()
CloseServiceHandle(InspServiceHandle);
CloseServiceHandle(SCMHandle);
- std::cout << "Service installed." << std::endl;
+ fmt::println("Service installed.");
}
catch(const CWin32Exception& e)
{
@@ -203,7 +201,7 @@ void InstallService()
if(SCMHandle)
CloseServiceHandle(SCMHandle);
- std::cout << "Service installation failed: " << e.what() << std::endl;
+ fmt::println("Service installation failed: {}", e.what());
}
}
@@ -229,7 +227,7 @@ void UninstallService()
CloseServiceHandle(InspServiceHandle);
CloseServiceHandle(SCMHandle);
- std::cout << "Service removed." << std::endl;
+ fmt::println("Service removed.");
}
catch(const CWin32Exception& e)
{
@@ -239,7 +237,7 @@ void UninstallService()
if(SCMHandle)
CloseServiceHandle(SCMHandle);
- std::cout << "Service deletion failed: " << e.what() << std::endl;
+ fmt::println("Service deletion failed: {}", e.what());
}
}