From d6e8f717809574089ce41520a204106b32660e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=A4=B4=E4=BA=91?= <372449116@qq.com> Date: Thu, 18 Dec 2025 03:34:24 +0000 Subject: [PATCH] refactor(log): remove deprecated utility/log.h - Remove src/libipc/utility/log.h as it's no longer used - All code has been migrated to use the new libipc/imp/log.h interface - The old utility/log.h provided printf-style logging: ipc::log() and ipc::error() - The new imp/log.h provides modern C++ stream-based logging with LIBIPC_LOG() macro - Verified that there are no remaining references to utility/log.h in the codebase This completes the log interface migration by removing the deprecated file. --- src/libipc/utility/log.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 src/libipc/utility/log.h diff --git a/src/libipc/utility/log.h b/src/libipc/utility/log.h deleted file mode 100755 index bb1dcea1..00000000 --- a/src/libipc/utility/log.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#include -#include - -namespace ipc { -namespace detail { - -template -void print(O out, char const * str) { - std::fprintf(out, "%s", str); -} - -template -void print(O out, char const * fmt, P1&& p1, P&&... params) { - std::fprintf(out, fmt, std::forward(p1), std::forward

(params)...); -} - -} // namespace detail - -inline void log(char const * fmt) { - ipc::detail::print(stdout, fmt); -} - -template -void log(char const * fmt, P1&& p1, P&&... params) { - ipc::detail::print(stdout, fmt, std::forward(p1), std::forward

(params)...); -} - -inline void error(char const * str) { - ipc::detail::print(stderr, str); -} - -template -void error(char const * fmt, P1&& p1, P&&... params) { - ipc::detail::print(stderr, fmt, std::forward(p1), std::forward

(params)...); -} - -} // namespace ipc