From 88cb3a52d64e400dda08e5252e7645b59a35703f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ka=C4=9Fan=20Can=20=C5=9Eit?= Date: Fri, 3 Apr 2026 23:40:53 +0300 Subject: [PATCH] chore(test): Remove unused header includes in test files --- test/chrono-test.cc | 1 - test/format-impl-test.cc | 1 - test/format-test.cc | 21 ++++++++++----------- test/gtest-extra-test.cc | 1 - test/os-test.cc | 1 - test/printf-test.cc | 1 - test/ranges-test.cc | 1 - test/scan-test.cc | 2 -- test/xchar-test.cc | 2 -- 9 files changed, 10 insertions(+), 21 deletions(-) diff --git a/test/chrono-test.cc b/test/chrono-test.cc index 98b37000b4eb..4dee7c47a1b4 100644 --- a/test/chrono-test.cc +++ b/test/chrono-test.cc @@ -7,7 +7,6 @@ #include "fmt/chrono.h" -#include #include #include diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index 0d906c4ee1cf..4259add33df0 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -5,7 +5,6 @@ // // For the license information refer to format.h. -#include #include // clang-format off diff --git a/test/format-test.cc b/test/format-test.cc index f18f3172f253..cd07c26a63ab 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -15,17 +15,16 @@ #include // uint32_t -#include // fegetexceptflag and FE_ALL_EXCEPT -#include // INT_MAX -#include // std::signbit -#include // std::condition_variable -#include // std::strlen -#include // std::back_inserter -#include // std::list -#include // std::mutex -#include // std::string -#include // std::thread -#include // std::is_default_constructible +#include // fegetexceptflag and FE_ALL_EXCEPT +#include // INT_MAX +#include // std::signbit +#include // std::strlen +#include // std::back_inserter +#include // std::list +#include // std::mutex +#include // std::string +#include // std::thread +#include // std::is_default_constructible #if FMT_CPLUSPLUS > 201703L && FMT_HAS_INCLUDE() # include #endif diff --git a/test/gtest-extra-test.cc b/test/gtest-extra-test.cc index 5c86040015e9..8e4401b853f8 100644 --- a/test/gtest-extra-test.cc +++ b/test/gtest-extra-test.cc @@ -9,7 +9,6 @@ #include -#include #include #include diff --git a/test/os-test.cc b/test/os-test.cc index e789e87e999d..5ece0eb794b0 100644 --- a/test/os-test.cc +++ b/test/os-test.cc @@ -7,7 +7,6 @@ #include "fmt/os.h" -#include // std::exit #include #include #include diff --git a/test/printf-test.cc b/test/printf-test.cc index 1b1f4f57ea53..354143b918f0 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -9,7 +9,6 @@ #include #include -#include #include "fmt/xchar.h" // DEPRECATED! #include "gtest-extra.h" diff --git a/test/ranges-test.cc b/test/ranges-test.cc index 0c2d771d6ee6..bd161d75c167 100644 --- a/test/ranges-test.cc +++ b/test/ranges-test.cc @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/test/scan-test.cc b/test/scan-test.cc index d4f9e413dea6..e0b7e2bc2f81 100644 --- a/test/scan-test.cc +++ b/test/scan-test.cc @@ -7,8 +7,6 @@ #include "scan.h" -#include - #include #include diff --git a/test/xchar-test.cc b/test/xchar-test.cc index f6620ddf44be..ec82d42571bf 100644 --- a/test/xchar-test.cc +++ b/test/xchar-test.cc @@ -7,9 +7,7 @@ #include "fmt/xchar.h" -#include #include -#include #include #include "fmt/chrono.h"