From dfd72fe02937e5bc844966d055e7531f586ddac9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 16 Sep 2024 09:54:27 +0100 Subject: Remove some unnecessary uses of . --- src/modules/extra/m_log_json.cpp | 1 - win/win32service.cpp | 10 ++++------ 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 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 - #include 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()); } } -- cgit v1.3.1-10-gc9f91