From 52908b474b798dc460b50c2d5522506d2c6f47f9 Mon Sep 17 00:00:00 2001 From: Yingchun Lai Date: Thu, 23 May 2024 18:51:45 +0800 Subject: [PATCH] iwyu --- src/runtime/service_api_c.cpp | 1 - src/utils/simple_logger.cpp | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/runtime/service_api_c.cpp b/src/runtime/service_api_c.cpp index 47198ca0cf..5d2918f550 100644 --- a/src/runtime/service_api_c.cpp +++ b/src/runtime/service_api_c.cpp @@ -45,7 +45,6 @@ #endif #include "fmt/core.h" -#include "fmt/format.h" #include "perf_counter/perf_counters.h" #include "runtime/api_layer1.h" #include "runtime/api_task.h" diff --git a/src/utils/simple_logger.cpp b/src/utils/simple_logger.cpp index 1248ab307b..0234cee6f8 100644 --- a/src/utils/simple_logger.cpp +++ b/src/utils/simple_logger.cpp @@ -26,33 +26,25 @@ #include "utils/simple_logger.h" -#include // IWYU pragma: no_include #include #include -#include -#include -#include -#include +#include #include #include -#include -#include +#include #include #include "absl/strings/string_view.h" #include "runtime/api_layer1.h" #include "utils/command_manager.h" -#include "utils/errors.h" #include "utils/fail_point.h" #include "utils/filesystem.h" #include "utils/flags.h" #include "utils/fmt_logging.h" #include "utils/ports.h" #include "utils/process_utils.h" -#include "utils/safe_strerror_posix.h" #include "utils/string_conv.h" -#include "utils/strings.h" #include "utils/time_utils.h" DSN_DEFINE_bool(tools.simple_logger, fast_flush, false, "Whether to flush logs immediately");